Skip to content

Commit 55ab43f

Browse files
[CST-15592] add interceptor for item edit page
1 parent 0e5b924 commit 55ab43f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cypress/e2e/item-edit.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ beforeEach(() => {
99

1010
// This page is restricted, so we will be shown the login form. Fill it out & submit.
1111
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');
1217
});
1318

1419
describe('Edit Item > Edit Metadata tab', () => {

0 commit comments

Comments
 (0)