@@ -24,7 +24,7 @@ public class TestCase1 extends TestBasic {
24
24
2. Navigate to url 'http://automationexercise.com'
25
25
3. Verify that home page is visible successfully
26
26
4. Click on 'Signup / Login' button
27
- 5. Verify 'New User Signup!' is visible
27
+ 5. Verify 'New User Signup!' is visible]
28
28
6. Enter name and email address
29
29
7. Click 'Signup' button
30
30
8. Verify that 'ENTER ACCOUNT INFORMATION' is visible
@@ -35,7 +35,7 @@ public class TestCase1 extends TestBasic {
35
35
13. Click 'Create Account button'
36
36
14. Verify that 'ACCOUNT CREATED!' is visible
37
37
15. Click 'Continue' button
38
- 16. Verify that 'Logged in as username' is visible
38
+ 16. Verify that 'Logged in as username' is visible]
39
39
17. Click 'Delete Account' button
40
40
18. Verify that 'ACCOUNT DELETED!' is visible and click 'Continue' button""" )
41
41
public void registerUser () throws IOException , ParseException {
@@ -47,48 +47,48 @@ public void registerUser() throws IOException, ParseException {
47
47
verifyThatAccountDeletedIsVisibleAndClickContinueButton ();
48
48
}
49
49
50
- @ Step ("3. Verify that home page is visible successfully" )
50
+ @ Step ("Verify that home page is visible successfully" )
51
51
public static void verifyThatHomePageIsVisibleSuccessfully () {
52
52
boolean homePageVisible = new HomePage (getDriver ())
53
53
.homePageIsVisible ()
54
54
.isDisplayed ();
55
- Assert .assertTrue (homePageVisible , "3. Verify that home page is visible successfully" );
55
+ Assert .assertTrue (homePageVisible , "Verify that home page is visible successfully" );
56
56
}
57
57
58
- @ Step ("5. Verify 'New User Signup!' is visible" )
58
+ @ Step ("Verify 'New User Signup!' is visible" )
59
59
public static void verifyNewUserSignupIsVisible () {
60
60
String newUserSignupText = new HomePage (getDriver ())
61
61
.signupLoginClick ()
62
62
.getNewUserSignup ()
63
63
.getText ();
64
- Assert .assertEquals (newUserSignupText , "New User Signup!" , "5. Verify 'New User Signup!' is visible" );
64
+ Assert .assertEquals (newUserSignupText , "New User Signup!" , "Verify 'New User Signup!' is visible" );
65
65
}
66
66
67
- @ Step ("8. Verify that 'ENTER ACCOUNT INFORMATION' is visible" )
67
+ @ Step ("Verify that 'ENTER ACCOUNT INFORMATION' is visible" )
68
68
private void verifyThatEnterAccountInformationIsVisible () {
69
69
String enterAccountInformationText = new LoginSignupPage (getDriver ())
70
70
.fillCorrectSignup (name , email )
71
71
.getEnterAccountInformation ()
72
72
.getText ();
73
- Assert .assertEquals (enterAccountInformationText , "ENTER ACCOUNT INFORMATION" , "8. Verify that 'ENTER ACCOUNT INFORMATION' is visible" );
73
+ Assert .assertEquals (enterAccountInformationText , "ENTER ACCOUNT INFORMATION" , "Verify that 'ENTER ACCOUNT INFORMATION' is visible" );
74
74
}
75
75
76
- @ Step ("14. Verify that 'ACCOUNT CREATED!' is visible" )
76
+ @ Step ("Verify that 'ACCOUNT CREATED!' is visible" )
77
77
private void verifyThatAccountCreatedIsVisible () throws IOException , ParseException {
78
78
String accountCreatedText = new EnterAccountInformationPage (getDriver ())
79
79
.fillAccountDetails ()
80
80
.getAccountCreated ()
81
81
.getText ();
82
- Assert .assertEquals (accountCreatedText , "ACCOUNT CREATED!" , "14. Verify that 'ACCOUNT CREATED!' is visible" );
82
+ Assert .assertEquals (accountCreatedText , "ACCOUNT CREATED!" , "Verify that 'ACCOUNT CREATED!' is visible" );
83
83
}
84
84
85
- @ Step ("16. Verify that 'Logged in as username' is visible" )
85
+ @ Step ("Verify that 'Logged in as username' is visible" )
86
86
private void verifyThatLoggedInAsUsernameIsVisible () {
87
87
String username = new AccountCreatedPage (getDriver ())
88
88
.continueButtonClick ()
89
89
.getUsername ()
90
90
.getText ();
91
- Assert .assertEquals (username , name , "16. Verify that 'Logged in as username' is visible" );
91
+ Assert .assertEquals (username , name , "Verify that 'Logged in as username' is visible" );
92
92
}
93
93
94
94
@ Step ("Verify that 'ACCOUNT DELETED!' is visible and click 'Continue' button" )
0 commit comments