@@ -3,31 +3,31 @@ import { testA11y } from 'cypress/support/utils';
33const page = {
44 openLoginMenu ( ) {
55 // Click the "Log In" dropdown menu in header
6- cy . get ( 'ds-header [data-test="login-menu"]' ) . click ( ) ;
6+ cy . get ( '[data-test="login-menu"]' ) . click ( ) ;
77 } ,
88 openUserMenu ( ) {
99 // Once logged in, click the User menu in header
10- cy . get ( 'ds-header [data-test="user-menu"]' ) . click ( ) ;
10+ cy . get ( '[data-test="user-menu"]' ) . click ( ) ;
1111 } ,
1212 submitLoginAndPasswordByPressingButton ( email , password ) {
1313 // Enter email
14- cy . get ( 'ds-header [data-test="email"]' ) . type ( email ) ;
14+ cy . get ( '[data-test="email"]' ) . type ( email ) ;
1515 // Enter password
16- cy . get ( 'ds-header [data-test="password"]' ) . type ( password ) ;
16+ cy . get ( '[data-test="password"]' ) . type ( password ) ;
1717 // Click login button
18- cy . get ( 'ds-header [data-test="login-button"]' ) . click ( ) ;
18+ cy . get ( '[data-test="login-button"]' ) . click ( ) ;
1919 } ,
2020 submitLoginAndPasswordByPressingEnter ( email , password ) {
2121 // In opened Login modal, fill out email & password, then click Enter
22- cy . get ( 'ds-header [data-test="email"]' ) . type ( email ) ;
23- cy . get ( 'ds-header [data-test="password"]' ) . type ( password ) ;
24- cy . get ( 'ds-header [data-test="password"]' ) . type ( '{enter}' ) ;
22+ cy . get ( '[data-test="email"]' ) . type ( email ) ;
23+ cy . get ( '[data-test="password"]' ) . type ( password ) ;
24+ cy . get ( '[data-test="password"]' ) . type ( '{enter}' ) ;
2525 } ,
2626 submitLogoutByPressingButton ( ) {
2727 // This is the POST command that will actually log us out
2828 cy . intercept ( 'POST' , '/server/api/authn/logout' ) . as ( 'logout' ) ;
2929 // Click logout button
30- cy . get ( 'ds-header [data-test="logout-button"]' ) . click ( ) ;
30+ cy . get ( '[data-test="logout-button"]' ) . click ( ) ;
3131 // Wait until above POST command responds before continuing
3232 // (This ensures next action waits until logout completes)
3333 cy . wait ( '@logout' ) ;
0 commit comments