diff --git a/cypress/integration/admin-menu.spec.ts b/cypress/integration/admin-menu.spec.ts index 5af3955c71c..1845fcdf2e6 100644 --- a/cypress/integration/admin-menu.spec.ts +++ b/cypress/integration/admin-menu.spec.ts @@ -21,6 +21,6 @@ describe('Admin Menu Page', () => { cy.get('.sidebar-top-level-items a[href = "/handle-table"]').scrollIntoView().should('be.visible'); // Check licenses redirect url in the tag - cy.get('.sidebar-top-level-items a[href = "/licenses"]').scrollIntoView().should('be.visible'); + cy.get('.sidebar-top-level-items a[href = "/licenses/manage-table"]').scrollIntoView().should('be.visible'); }); }); diff --git a/cypress/integration/clarin-licenses-page.spec.ts b/cypress/integration/clarin-licenses-page.spec.ts index 1f89db845e3..d5e3ddbf335 100644 --- a/cypress/integration/clarin-licenses-page.spec.ts +++ b/cypress/integration/clarin-licenses-page.spec.ts @@ -17,7 +17,7 @@ describe('License Administration Page', () => { // Login as admin cy.loginViaForm(TEST_ADMIN_USER, TEST_ADMIN_PASSWORD); - cy.visit('/licenses'); + cy.visit('/licenses/manage-table'); // tag must be loaded cy.get('ds-clarin-license-table').should('exist'); diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 1964ccc0dd4..30bdc8b2394 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -105,6 +105,9 @@ Cypress.on('uncaught:exception', (err, runnable) => { * @param password password to login as */ function loginViaForm(email: string, password: string): void { + // Cancel discojuice login + cy.wait(500); + cy.get('.discojuice_close').click(); // Enter email cy.get('ds-log-in [data-test="email"]').type(email); // Enter password