Handle small viewport correctly in E2E tests

This commit is contained in:
Bubka 2022-08-09 09:47:29 +02:00
parent 8ac0b40cf5
commit ad2e226ca4
4 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,7 @@ Submit Credentials To Legacy Form Login
[Arguments] ${email} ${password}
Input Text ${EMAIL FIELD} ${email}
Input Text ${PASSWORD FIELD} ${password}
Scroll To Bottom
Click Button ${SIGN IN BUTTON}
Email Field Should Show An Error

View File

@ -31,6 +31,7 @@ Submit Account Data To Registration Form
Input Text ${EMAIL FIELD} ${email}
Input Text ${PASSWORD FIELD} ${password}
Input Text ${PASSWORD CONFIRMATION FIELD} ${password confirmation}
Scroll To Bottom
Click Button ${REGISTER BUTTON}
Username Field Should Show An Error

View File

@ -19,6 +19,7 @@ Go To Account Settings Page
Go Authenticated To ${ACCOUNT SETTINGS PAGE URL}
Delete User Account
Scroll To Bottom
Input Text ${PASSWORD FIELD FOR DELETE} ${PASSWORD}
Click Button ${DELETE YOUR ACCOUNT BUTTON}
Handle Alert

View File

@ -27,6 +27,7 @@ Open Blank Browser
# Create Webdriver Chrome chrome_options=${options}
# Go To ${HOME PAGE URL}
Open Browser ${HOME PAGE URL} Chrome
Maximize Browser Window
Go Authenticated To
[Arguments] ${url}
@ -43,4 +44,7 @@ An Error Notification Should Appear
Field Should Show An Error
[Arguments] ${field error}
Element Should Be Visible ${field error}
Should Not Be Empty ${field error}
Should Not Be Empty ${field error}
Scroll To Bottom
Execute Javascript window.scrollTo(0,document.body.scrollHeight)