Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Validation for 16-25 login page
- @16-25 @validation @noMatchAccount
- Scenario: Logging in to an account that does not exist
- Given I open the "16-25" railcard homepage
- When I enter "not-valid@raildeliverygroup.com" into the e-mail address field
- And I enter "123456" into the password field
- And I select login
- Then login fails with email and password does not match message
- @16-25 @validation @wrongPassword
- Scenario: Logging in to an account with an incorrect password
- Given I open the "16-25" railcard homepage
- When I enter "rdg_16-25@mailinator.com" into the e-mail address field
- And I enter "Password0987" into the password field
- And I select login
- Then login fails with email and password does not match message
- When I enter "Password1234" into the password field
- And I select login
- @16-25 @validation @duplicateAccount
- Scenario: Creating an account when e-mail already used
- Given I open the "16-25" railcard homepage
- And I select new railcard
- When I register using e-mail "rdg_16-25@mailinator.com"
- And I register using password "Password1234"
- And I select continue
- Then registration fails with e-mail already exists message
- @16-25 @validation @successfulLogin
- Scenario: Successful login
- Given I open the "16-25" railcard homepage
- When I enter "rdg_16-25@mailinator.com" into the e-mail address field
- And I enter "Password1234" into the password field
- And I select login
- Then the "Your Railcards" page is displayed
- @16-25 @validation
- Scenario: Register a railcard with an existing e-mail address
- Given I open the "16-25" railcard homepage
- When I select register a railcard
- And I register a railcard to e-mail "rdg_16-25@mailinator.com"
- Then registration fails with e-mail already exists message
Add Comment
Please, Sign In to add comment