Advertisement
Guest User

register.feature

a guest
Feb 21st, 2018
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.90 KB | None | 0 0
  1. @FE @FE-Register @PROD
  2.  
  3. Feature:[FE] [Register] Registering accounts
  4.  
  5.   The register page allows users to register an account with the website
  6.   and give them access to trading functionality. Valid and invalid test
  7.   cases have been written to ensure users cannot abuse the register form.
  8.  
  9.   Background:
  10.     Given I navigate to the Einstein Registration page (/register)
  11.  
  12.  
  13.   @EE-020101
  14.   Scenario: Verify the screen elements of login screen
  15.     Then I check I am on the Einstein 'Sign In' page (/register)
  16.     And the 'text' XPath '//div[@id='app']/div/div/div/form/fieldset/div/header/h1' containing 'Register' exists
  17.     And the input with the attribute 'name' and the value 'email' exists
  18.     And the input with the attribute 'name' and the value 'password' exists
  19.     And the input with the attribute 'type' and the value 'checkbox' exists
  20.     And the button with the attribute 'type' and the value 'submit' exists
  21.     And the 'button' XPath '//div[@id='app']/div/div/div/form/fieldset/div/a' containing 'Already have an account? Sign in' exists
  22.  
  23.  
  24.   @EE-020202
  25.   Scenario: User attempts to register with an invalid email
  26.     And the input with the attribute 'name' and the value 'email' exists
  27.     And the input with the attribute 'name' and the value 'password' exists
  28.     And the input with the attribute 'type' and the value 'checkbox' exists
  29.     Then I type 'invalidEmail@1' into the 'Email Address' input with the attribute 'name' and value 'email'
  30.     And I type 'T123esting' into the 'Password' input with the attribute 'name' and value 'password'
  31.     Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
  32.     Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
  33.     Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
  34.     But the div with the attribute 'error-message' containing 'Invalid Email Address' exists
  35.  
  36.   @EE-020203
  37.   Scenario: User attempts to register with an email that is already in use
  38.     And the input with the attribute 'name' and the value 'email' exists
  39.     And the input with the attribute 'name' and the value 'password' exists
  40.     And the input with the attribute 'type' and the value 'checkbox' exists
  41.     Then I type 'trevordasilva@fingerfoodstudios.com' into the 'Email Address' input with the attribute 'name' and value 'email'
  42.     And I type 'T123esting' into the 'Password' input with the attribute 'name' and value 'password'
  43.     Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
  44.     Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
  45.     Then I click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
  46.     And the h1 containing 'Unable to Create Account' exists
  47.     And the p containing 'User already exists' exists
  48.  
  49.   @EE-020204
  50.   Scenario: User attempts to register with a valid email and invalid password
  51.     And the input with the attribute 'name' and the value 'email' exists
  52.     And the input with the attribute 'name' and the value 'password' exists
  53.     And the input with the attribute 'type' and the value 'checkbox' exists
  54.     Then I type 'trevordasilva@fingerfoodstudios.com' into the 'Email Address' input with the attribute 'name' and value 'email'
  55.     And I type 'T' into the 'Password' input with the attribute 'name' and value 'password'
  56.     Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
  57.     Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
  58.     Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
  59.     But the div with the attribute 'error-message' containing 'Minimum 8 characters' exists
  60.  
  61.   @EE-020205
  62.   Scenario: User attempts to register with an invalid email and invalid password
  63.     And the input with the attribute 'name' and the value 'email' exists
  64.     And the input with the attribute 'name' and the value 'password' exists
  65.     And the input with the attribute 'type' and the value 'checkbox' exists
  66.     Then I type 'invalidEmail@1' into the 'Email Address' input with the attribute 'name' and value 'email'
  67.     And I type 'T' into the 'Password' input with the attribute 'name' and value 'password'
  68.     Then I click on the 'checkbox' input with the attribute 'type' and the value 'checkbox'
  69.     Then I click on the 'I AGREE' button with the XPath '//*[@id="app"]/div/div/div[1]/div/footer/div/div[2]/button'
  70.     Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
  71.     But the div with the attribute 'error-message' containing 'Invalid Email Address' exists
  72.     But the div with the attribute 'error-message' containing 'Minimum 8 characters' exists
  73.  
  74.   @EE-020206
  75.   Scenario: User attempts to register without accepting the terms
  76.     And the input with the attribute 'name' and the value 'email' exists
  77.     And the input with the attribute 'name' and the value 'password' exists
  78.     And the input with the attribute 'type' and the value 'checkbox' exists
  79.     Then I type 'trevordasilva@fingerfoodstudios.com' into the 'Email Address' input with the attribute 'name' and value 'email'
  80.     And I type 'T123esting' into the 'Password' input with the attribute 'name' and value 'password'
  81.     Then I cannot click on the 'Create Profile' button with the attribute 'type' and the value 'submit'
  82.  
  83.   @EE-020207
  84.   Scenario: User attempts to register without entering an email and password
  85.     And the input with the attribute 'name' and the value 'email' exists
  86.     And the input with the attribute 'name' and the value 'password' exists
  87.     And the input with the attribute 'type' and the value 'checkbox' exists
  88.     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