Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @FE @FE-Register @PROD
- Feature:[FE] [Register] Registering accounts
- The register page allows users to register an account with the website
- and give them access to trading functionality. Valid and invalid test
- cases have been written to ensure users cannot abuse the register form.
- Background:
- Given I navigate to the Einstein Registration page (/register)
- @EE-020101
- Scenario: Verify the screen elements of login screen
- Then I check I am on the Einstein 'Sign In' page (/register)
- And the 'text' XPath '//div[@id='app']/div/div/div/form/fieldset/div/header/h1' containing 'Register' exists
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- And the button with the attribute 'type' and the value 'submit' exists
- And the 'button' XPath '//div[@id='app']/div/div/div/form/fieldset/div/a' containing 'Already have an account? Sign in' exists
- @EE-020202
- Scenario: User attempts to register with an invalid email
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- Then I type 'invalidEmail@1' into the 'Email Address' input with the attribute 'name' and value 'email'
- And I type 'T123esting' into the 'Password' input with the attribute 'name' and value 'password'
- Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
- Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
- Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
- But the div with the attribute 'error-message' containing 'Invalid Email Address' exists
- @EE-020203
- Scenario: User attempts to register with an email that is already in use
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- Then I type 'trevordasilva@fingerfoodstudios.com' into the 'Email Address' input with the attribute 'name' and value 'email'
- And I type 'T123esting' into the 'Password' input with the attribute 'name' and value 'password'
- Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
- Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
- Then I click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
- And the h1 containing 'Unable to Create Account' exists
- And the p containing 'User already exists' exists
- @EE-020204
- Scenario: User attempts to register with a valid email and invalid password
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- Then I type 'trevordasilva@fingerfoodstudios.com' into the 'Email Address' input with the attribute 'name' and value 'email'
- And I type 'T' into the 'Password' input with the attribute 'name' and value 'password'
- Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
- Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
- Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
- But the div with the attribute 'error-message' containing 'Minimum 8 characters' exists
- @EE-020205
- Scenario: User attempts to register with an invalid email and invalid password
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- Then I type 'invalidEmail@1' into the 'Email Address' input with the attribute 'name' and value 'email'
- And I type 'T' into the 'Password' input with the attribute 'name' and value 'password'
- Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
- Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
- Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
- But the div with the attribute 'error-message' containing 'Invalid Email Address' exists
- But the div with the attribute 'error-message' containing 'Minimum 8 characters' exists
- @EE-020206
- Scenario: User attempts to register without accepting the terms
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- Then I type 'trevordasilva@fingerfoodstudios.com' into the 'Email Address' input with the attribute 'name' and value 'email'
- And I type 'T123esting' into the 'Password' input with the attribute 'name' and value 'password'
- Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
- @EE-020207
- Scenario: User attempts to register without entering an email and password
- And the input with the attribute 'name' and the value 'email' exists
- And the input with the attribute 'name' and the value 'password' exists
- And the input with the attribute 'type' and the value 'checkbox' exists
- Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement