-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e-login): e2e login tests added to cypress
- Loading branch information
1 parent
c12d906
commit 7fdc9af
Showing
4 changed files
with
22 additions
and
7 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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ describe('Login Keycloak user roles', function () { | |
cy.keycloakLogin(adminTestUser.login, adminTestUser.password); | ||
cy.getByTestId('header-burgermenu').click(); | ||
|
||
cy.getByTestId('user-label').should('have.text', 'test'); | ||
cy.getByTestId('user-label').should('have.text', 'admin@test.com'); | ||
cy.getByTestId('admin-icon').should('exist'); | ||
cy.getByTestId('login-button').should('be.not.exist'); | ||
cy.keycloakLogout(); | ||
|
@@ -38,7 +38,7 @@ describe('Login Keycloak user roles', function () { | |
cy.keycloakLogin(testUser.login, testUser.password); | ||
cy.getByTestId('header-burgermenu').click(); | ||
|
||
cy.getByTestId('user-label').should('have.text', 'test_user'); | ||
cy.getByTestId('user-label').should('have.text', '[email protected]'); | ||
cy.getByTestId('user-icon').should('exist'); | ||
cy.getByTestId('login-button').should('be.not.exist'); | ||
cy.keycloakLogout(); | ||
|
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