File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- const SMOKE_TEST_EMAIL = Cypress . env ( 'USER_EMAIL' ) ;
2- const USER_PASSWORD = Cypress . env ( 'USER_PASSWORD' ) ;
1+ const EMAIL = Cypress . env ( 'USER_EMAIL' ) ;
2+ const PASSWORD = Cypress . env ( 'USER_PASSWORD' ) ;
33
4- if ( ! SMOKE_TEST_EMAIL || ! USER_PASSWORD ) {
4+ if ( ! EMAIL || ! PASSWORD ) {
55 throw new Error (
66 'You must provide CYPRESS_USER_EMAIL and CYPRESS_USER_PASSWORD environment variables'
77 ) ;
88}
99
1010const loginToAuth0 = ( ) : void => {
11- cy . get ( '#username' ) . clear ( ) . type ( SMOKE_TEST_EMAIL ) ;
12- cy . get ( '#password' ) . clear ( ) . type ( USER_PASSWORD ) ;
11+ cy . get ( '#username' ) . clear ( ) . type ( EMAIL ) ;
12+ cy . get ( '#password' ) . clear ( ) . type ( PASSWORD ) ;
1313 cy . get ( 'button[type="submit"][name="action"]' ) . contains ( / ^ c o n t i n u e $ / i) . click ( { force : true } ) ;
1414} ;
1515
@@ -21,7 +21,7 @@ describe('Smoke tests', () => {
2121
2222 loginToAuth0 ( ) ;
2323
24- cy . get ( '#hello' ) . contains ( `Hello, ${ SMOKE_TEST_EMAIL } !` ) ;
24+ cy . get ( '#hello' ) . contains ( `Hello, ${ EMAIL } !` ) ;
2525 cy . get ( '#logout' ) . click ( ) ;
2626 cy . get ( '#login' ) . should ( 'exist' ) ;
2727 } ) ;
You can’t perform that action at this time.
0 commit comments