@@ -30,24 +30,7 @@ describe("User Sign-up and Login", function () {
30
30
cy . location ( "pathname" ) . should ( "equal" , "/" ) ;
31
31
} ) ;
32
32
33
- it ( "should remember a user for 30 days after login" , function ( ) {
34
- cy . database ( "find" , "users" ) . then ( ( user : User ) => {
35
- cy . login ( user . username , "s3cret" , { rememberUser : true } ) ;
36
- } ) ;
37
-
38
- // Verify Session Cookie
39
- cy . getCookie ( "connect.sid" ) . should ( "have.property" , "expiry" ) ;
40
-
41
- // Logout User
42
- if ( isMobile ( ) ) {
43
- cy . getBySel ( "sidenav-toggle" ) . click ( ) ;
44
- }
45
- cy . getBySel ( "sidenav-signout" ) . click ( ) ;
46
- cy . location ( "pathname" ) . should ( "eq" , "/signin" ) ;
47
- cy . visualSnapshot ( "Redirect to SignIn" ) ;
48
- } ) ;
49
-
50
- it ( "should allow a visitor to sign-up, login, and logout" , function ( ) {
33
+ it ( "should allow a visitor to sign-up and login" , function ( ) {
51
34
const userInfo = {
52
35
firstName : "Bob" ,
53
36
lastName : "Ross" ,
@@ -98,14 +81,6 @@ describe("User Sign-up and Login", function () {
98
81
99
82
cy . getBySel ( "transaction-list" ) . should ( "be.visible" ) ;
100
83
cy . visualSnapshot ( "Transaction List is visible after User Onboarding" ) ;
101
-
102
- // Logout User
103
- if ( isMobile ( ) ) {
104
- cy . getBySel ( "sidenav-toggle" ) . click ( ) ;
105
- }
106
- cy . getBySel ( "sidenav-signout" ) . click ( ) ;
107
- cy . location ( "pathname" ) . should ( "eq" , "/signin" ) ;
108
- cy . visualSnapshot ( "Redirect to SignIn" ) ;
109
84
} ) ;
110
85
111
86
it ( "should display login errors" , function ( ) {
0 commit comments