@@ -18,13 +18,13 @@ describe('Log In Feature: Test Instructor Login', () => {
1818 cy . get ( '.choose-course' ) . should ( 'contain' , 'Sample Course' ) ;
1919 cy . get ( '.choose-course' ) . click ( ) ;
2020 cy . title ( ) . should ( 'contain' , 'Sample Course' ) ;
21- cy . visit ( '/accounts/logout/?next=/' ) ;
21+ cy . get ( '.sign-out' ) . click ( ) ;
2222 cy . title ( ) . should ( 'contain' , 'Splash' ) ;
2323 } ) ;
2424} ) ;
2525
2626describe ( 'Log In Feature: Test Invalid login' , ( ) => {
27- it ( 'should not log in' , ( ) => {
27+ it ( 'should not log in with invalid credentials ' , ( ) => {
2828 cy . visit ( '/accounts/login/' ) ;
2929 cy . title ( ) . should ( 'contain' , 'Login' ) ;
3030 cy . get ( '#cu-privacy-notice-button' ) . click ( ) ;
@@ -36,7 +36,7 @@ describe('Log In Feature: Test Invalid login', () => {
3636} ) ;
3737
3838describe ( 'Log In Feature: Test Student Login' , ( ) => {
39- it ( 'should test student login ' , ( ) => {
39+ it ( 'should log in as student_one ' , ( ) => {
4040 cy . visit ( '/accounts/login/' ) ;
4141 cy . title ( ) . should ( 'contain' , 'Login' ) ;
4242 cy . get ( '#cu-privacy-notice-button' ) . click ( ) ;
@@ -45,13 +45,13 @@ describe('Log In Feature: Test Student Login', () => {
4545 cy . login ( 'student_one' , 'test' ) ;
4646 cy . visit ( '/' ) ;
4747 cy . title ( ) . should ( 'contain' , 'Sample Course' ) ;
48- cy . visit ( '/accounts/logout/?next=/' ) ;
48+ cy . get ( '.sign-out' ) . click ( ) ;
4949 cy . title ( ) . should ( 'contain' , 'Splash' ) ;
5050 } ) ;
5151} ) ;
5252
5353describe ( 'Log In Feature: Test Switch Course feature' , ( ) => {
54- it ( 'should test student login ' , ( ) => {
54+ it ( 'should log in as student_one and see courses ' , ( ) => {
5555 cy . visit ( '/accounts/login/' ) ;
5656 cy . title ( ) . should ( 'contain' , 'Login' ) ;
5757 cy . get ( '#cu-privacy-notice-button' ) . click ( ) ;
0 commit comments