This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ describe("The Home Page", () => {
14
14
// {enter} causes the form to submit
15
15
cy . get ( "input[id=formBasicPassword]" ) . type ( `${ password } {enter}` ) ;
16
16
17
+ cy . get ( "span.navbar-link-description" )
18
+ . contains ( "Health" )
19
+ . click ( ) ;
20
+
17
21
// UI should reflect this user being logged in
18
22
cy . get ( "h1" ) . should ( "contain" , "FileFighter" ) ;
19
23
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ describe("The register Page", () => {
11
11
} ) ;
12
12
13
13
it ( "registers a user successfully" , ( ) => {
14
+ cy . get ( "span.navbar-link-description" )
15
+ . contains ( "Health" )
16
+ . click ( ) ;
17
+
14
18
cy . get ( "#ff-heath-table > tbody > tr:nth-child(4) > td:nth-child(2)" )
15
19
. contains ( / ^ \d + / )
16
20
. then ( ( $tr ) => {
@@ -33,7 +37,7 @@ describe("The register Page", () => {
33
37
cy . get ( "#formConfirmPassword" ) . type ( password ) ;
34
38
35
39
cy . get ( ".btn.btn-primary" ) . contains ( "Submit" ) . click ( ) ;
36
- cy . get ( "span.navbar-link-description" ) . contains ( "Main " ) . click ( ) ;
40
+ cy . get ( "span.navbar-link-description" ) . contains ( "Health " ) . click ( ) ;
37
41
38
42
cy . logout ( ) ;
39
43
@@ -43,6 +47,10 @@ describe("The register Page", () => {
43
47
`${ password } {enter}`
44
48
) ;
45
49
50
+ cy . get ( "span.navbar-link-description" )
51
+ . contains ( "Health" )
52
+ . click ( ) ;
53
+
46
54
cy . get ( "h1" ) . should ( "contain" , "FileFighter" ) ;
47
55
48
56
let newUserCount = ( parseInt ( currentUserCount ) + 1 ) . toString ( ) ;
You can’t perform that action at this time.
0 commit comments