Commits

Alexandre Vryghem authored and github-actions[bot] committed 970544c1300
120109: Updated the route configuration to only resolve the dsoEditMenuResolver on pages who use the DsoEditMenuComponent

(cherry picked from commit 5c9f494f7692ae7d664cf89d970c330528878abe)
No tags

cypress/e2e/item-edit.cy.ts

Modified
1 1 import { testA11y } from 'cypress/support/utils';
2 2 import { Options } from 'cypress-axe';
3 3
4 4 const ITEM_EDIT_PAGE = '/items/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION')).concat('/edit');
5 5
6 6 beforeEach(() => {
7 7 // All tests start with visiting the Edit Item Page
8 8 cy.visit(ITEM_EDIT_PAGE);
9 9
10 10 // This page is restricted, so we will be shown the login form. Fill it out & submit.
11 11 cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
12 -
13 - // We need to wait for the correction types allowed for the item to be loaded to be sure that each tab is fully loaded.
14 - // This because the edit item page causes often tests to fails due to timeout.
15 - cy.intercept('GET', 'server/api/config/correctiontypes/search/findByItem*').as('correctionTypes');
16 - cy.wait('@correctionTypes');
17 12 });
18 13
19 14 describe('Edit Item > Edit Metadata tab', () => {
20 15 it('should pass accessibility tests', () => {
21 16 cy.get('a[data-test="metadata"]').click();
22 17
23 18 // Our selected tab should be active
24 19 cy.get('a[data-test="metadata"]').should('have.class', 'active');
25 20
26 21 // <ds-edit-item-page> tag must be loaded

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut