Skip to content

Commit 2c8addc

Browse files
fix: standardize variable names for user credentials in smoke tests
1 parent 2209ed7 commit 2c8addc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cypress/e2e/smoke.cy.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
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

1010
const 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(/^continue$/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
});

0 commit comments

Comments
 (0)