Skip to content

Commit

Permalink
make sure the log(ged)-in info is not covered by the authentication m…
Browse files Browse the repository at this point in the history
…odal
  • Loading branch information
schiwaa committed Feb 12, 2024
1 parent 70252ad commit 0bc412e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend-e2e/cypress/e2e/homepage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const admin = users.filter(({username}) => username === '[email protected]')[0];

beforeEach(() => {
cy.visit(`${Cypress.env('CY_STEMMAWEB_FRONTEND_URL')}/`);
cy.viewport(1600, 900);
cy.loginViaUi(admin);
});

Expand Down
1 change: 1 addition & 0 deletions frontend-e2e/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Cypress.Commands.add('loginViaUi', (userObj) => {
cy.get('#loginEmail').wait(500).type(userObj.username, { delay: 50 });
cy.get('#loginPassword').wait(500).type(userObj.password, { delay: 50 });
cy.get('button').contains('Sign in').wait(500).click();
cy.get('#authModal').should('not.be.visible');
cy.contains('Logged in as ' + userObj.username);
cy.contains('header a', 'Sign out');
cy.get('header').should('not.contain', 'Sign in');
Expand Down

0 comments on commit 0bc412e

Please sign in to comment.