|
| 1 | +Feature: Create Account |
| 2 | + |
| 3 | +Scenario:Create Account with valid credentials |
| 4 | +Given I navigate to given website |
| 5 | +And I click on Create an Account Link |
| 6 | +And I Enter First Name as "John" |
| 7 | +And I Enter Last Name as "Doe" |
| 8 | +And I Enter Email as "bisma.test@gmail.com" |
| 9 | +And I Enter Password as "Test123@" |
| 10 | +And I Enter Confirm Password as "Test123@" |
| 11 | +Then I Click on Create an Account button |
| 12 | +And I see My Account text |
| 13 | + |
| 14 | + |
| 15 | +Scenario: Create Account with invalid email id |
| 16 | + Given I navigate to given website |
| 17 | +And I click on Create an Account Link |
| 18 | +And I Enter First Name as "John" |
| 19 | +And I Enter Last Name as "Doe" |
| 20 | +And I Enter Email as "bisma.test_test@gmail" |
| 21 | +And I Enter Password as "Test123@" |
| 22 | +And I Enter Confirm Password as "Test123@" |
| 23 | +Then I Click on Create an Account button |
| 24 | +And I see error text |
| 25 | + |
| 26 | +Scenario: Create Account with duplicate email id |
| 27 | +Given I navigate to given website |
| 28 | +And I click on Create an Account Link |
| 29 | +And I Enter First Name as "John" |
| 30 | +And I Enter Last Name as "Doe" |
| 31 | +And I Enter duplicate Email as "bisma.test@gmail.com" |
| 32 | +And I Enter Password as "Test123@" |
| 33 | +And I Enter Confirm Password as "Test123@" |
| 34 | +Then I Click on Create an Account button |
| 35 | +And I see message error duplcate email error text |
| 36 | + |
| 37 | +Scenario: Create Account with password mismatch |
| 38 | +Given I navigate to given website |
| 39 | +And I click on Create an Account Link |
| 40 | +And I Enter First Name as "John" |
| 41 | +And I Enter Last Name as "Doe" |
| 42 | +And I Enter Email as "bisma.test_test@gmail.com" |
| 43 | +And I Enter Password as "Test123@" |
| 44 | +And I Enter Confirm Password as "Test1" |
| 45 | +Then I Click on Create an Account button |
| 46 | +And I see password mismatch error |
| 47 | + |
| 48 | + |
0 commit comments