Skip to content

Commit

Permalink
textual update
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed Jul 25, 2024
1 parent 88bebaa commit 85dab05
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend-e2e/cypress/e2e/experimental.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('addStemma and deleteStemma with login, passes in headless mode despite
cy.get('#delete-stemma-button-link').wait(500).click(); // DELETE method
cy.contains('Yes, delete it').wait(500).click();

cy.logoutViaUi(admin);
cy.logoutViaUi();
});
});

Expand Down
4 changes: 2 additions & 2 deletions frontend-e2e/cypress/e2e/role_admin/homepage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ beforeEach(() => {
cy.visit(`${Cypress.env('CY_STEMMAWEB_FRONTEND_URL')}/`);
cy.viewport(1600, 900);
test_traditions.sort( (tradition_a, tradition_b) => tradition_a.title.localeCompare( tradition_b.title ) );
cy.loginViaUi(admin); // TODO: also for headless mode
cy.loginViaUi(admin);
});

afterEach(() => {
cy.logoutViaUi(admin); // TODO: also for headless mode
cy.logoutViaUi();
});

// on the homepage, the admin should see all traditions listed
Expand Down
4 changes: 2 additions & 2 deletions frontend-e2e/cypress/e2e/role_admin/stemwebdialog.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ describe('stemma editing error feedback in message console works properly', () =
it('passes', () => { // needs login
if (Cypress.env('CY_MODE') === 'headed') { // only log in if headed. dont run this test headless because it needs to be logged in // TODO: also for headless mode
// TODO: when fitted also for healess mode, merge with previous test (partly duplicate)
cy.loginViaUi(admin); // TODO: also for headless mode
cy.loginViaUi(admin);

// To do: assert that the message console lists unexpected errors
// when editing a stemma and e.g. removing [class=extant] after one of the nodes,
Expand Down Expand Up @@ -398,7 +398,7 @@ describe('stemma editing error feedback in message console works properly', () =
// Test also the CANCEL button
});

cy.logoutViaUi(admin); // TODO: also for headless mode
cy.logoutViaUi();
}
});
});
2 changes: 1 addition & 1 deletion frontend-e2e/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Cypress.Commands.add('loginViaUi', (userObj) => {
});

// Logout via user interface
Cypress.Commands.add('logoutViaUi', (userObj) => {
Cypress.Commands.add('logoutViaUi', () => {
cy.log("Cypress.env('CY_MODE'): " + Cypress.env('CY_MODE'));
cy.contains('header a', 'Sign out').click();
cy.contains('header a', 'Sign in');
Expand Down

0 comments on commit 85dab05

Please sign in to comment.