diff --git a/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-folio-instance-on-member.cy.js b/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-folio-instance-on-member.cy.js index fce8b5a229..d7bac6c30f 100644 --- a/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-folio-instance-on-member.cy.js +++ b/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-folio-instance-on-member.cy.js @@ -32,16 +32,18 @@ describe('Inventory', () => { cy.assignPermissionsToExistingUser(user.userId, [ Permissions.uiInventoryViewCreateEditInstances.gui, ]); - - cy.login(user.username, user.password, { - path: TopMenu.inventoryPath, - waiter: InventoryInstances.waitContentLoading, - }); - ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.central); - ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college); }); }); + beforeEach('Login', () => { + cy.login(user.username, user.password, { + path: TopMenu.inventoryPath, + waiter: InventoryInstances.waitContentLoading, + }); + ConsortiumManager.checkCurrentTenantInTopMenu(tenantNames.central); + ConsortiumManager.switchActiveAffiliation(tenantNames.central, tenantNames.college); + }); + after('Delete test data', () => { cy.resetTenant(); cy.getAdminToken(); diff --git a/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-marc-instance-on-member.cy.js b/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-marc-instance-on-member.cy.js index 95dd5a9f58..49c12051a8 100644 --- a/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-marc-instance-on-member.cy.js +++ b/cypress/e2e/consortia/inventory/instance/limited-edit-permissions-for-shared-marc-instance-on-member.cy.js @@ -61,7 +61,6 @@ describe('Inventory', () => { 'C402335 (CONSORTIA) Verify limited Edit permissions for Shared MARC instance on Member tenant (consortia) (folijet)', { tags: ['criticalPathECS', 'folijet', 'C402335'] }, () => { - cy.intercept('POST', '/authn/refresh').as('/authn/refresh'); InventorySearchAndFilter.verifySearchAndFilterPane(); InventorySearchAndFilter.bySource(testData.instanceSource); cy.wait(1500);