Guest User

Untitled

a guest
May 26th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. Feature: Validation for 16-25 login page
  2.  
  3. @16-25 @validation @noMatchAccount
  4. Scenario: Logging in to an account that does not exist
  5. Given I open the "16-25" railcard homepage
  6. When I enter "not-valid@raildeliverygroup.com" into the e-mail address field
  7. And I enter "123456" into the password field
  8. And I select login
  9. Then login fails with email and password does not match message
  10.  
  11. @16-25 @validation @wrongPassword
  12. Scenario: Logging in to an account with an incorrect password
  13. Given I open the "16-25" railcard homepage
  14. When I enter "rdg_16-25@mailinator.com" into the e-mail address field
  15. And I enter "Password0987" into the password field
  16. And I select login
  17. Then login fails with email and password does not match message
  18. When I enter "Password1234" into the password field
  19. And I select login
  20.  
  21.  
  22. @16-25 @validation @duplicateAccount
  23. Scenario: Creating an account when e-mail already used
  24. Given I open the "16-25" railcard homepage
  25. And I select new railcard
  26. When I register using e-mail "rdg_16-25@mailinator.com"
  27. And I register using password "Password1234"
  28. And I select continue
  29. Then registration fails with e-mail already exists message
  30.  
  31. @16-25 @validation @successfulLogin
  32. Scenario: Successful login
  33. Given I open the "16-25" railcard homepage
  34. When I enter "rdg_16-25@mailinator.com" into the e-mail address field
  35. And I enter "Password1234" into the password field
  36. And I select login
  37. Then the "Your Railcards" page is displayed
  38.  
  39. @16-25 @validation
  40. Scenario: Register a railcard with an existing e-mail address
  41. Given I open the "16-25" railcard homepage
  42. When I select register a railcard
  43. And I register a railcard to e-mail "rdg_16-25@mailinator.com"
  44. Then registration fails with e-mail already exists message
Add Comment
Please, Sign In to add comment