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();