-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e78a452
commit 92634ae
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
const EMAIL = '[email protected]'; | ||
const PASSWORD = Cypress.env('INTEGRATION_PASSWORD'); | ||
const APP_STATE = 'Any Random String'; | ||
|
||
const loginToAuth0 = () => { | ||
cy.get('.auth0-lock-form') | ||
|
@@ -44,6 +45,7 @@ describe('Smoke tests', () => { | |
|
||
it('do redirect login and show user and access token', () => { | ||
cy.visit('/'); | ||
cy.get('[data-cy=app-state-input]').type(APP_STATE); | ||
cy.get('#login').should('be.visible').click(); | ||
cy.url().should('include', 'https://brucke.auth0.com/login'); | ||
loginToAuth0(); | ||
|
@@ -60,6 +62,8 @@ describe('Smoke tests', () => { | |
cy.get('[data-cy=accessToken]').should('have.text', token); | ||
}); | ||
|
||
cy.get('[data-cy=app-state-result]').should('have.value', APP_STATE); | ||
|
||
cy.get('#logout').should('be.visible').click(); | ||
cy.get('#login').should('be.visible'); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters