Skip to content

Commit ff1f6fb

Browse files
committed
Adding Clear all Savedsessions to remove the session data
1 parent 4740ca5 commit ff1f6fb

File tree

2 files changed

+5
-4
lines changed
  • src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client

2 files changed

+5
-4
lines changed

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/cypress/support/e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import cypress from "cypress";
12
import "./commands";
23
import "./labour-mobility-commands";
34

@@ -9,10 +10,11 @@ beforeEach(() => {
910

1011
cy.viewport(width, height);
1112

13+
//Clear saved session if there is a retry
1214
if (Cypress.currentRetry > 0) {
1315
cy.log("retry count: " + Cypress.currentRetry);
14-
cy.log("Resetting browser state in case session state is stale");
15-
cy.resetBrowserState();
16+
cy.log("Resetting browser state in case session state is stale");
17+
Cypress.session.clearAllSavedSessions();
1618
}
1719

1820

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,5 @@
7676
"extends": [
7777
"plugin:storybook/recommended"
7878
]
79-
}
80-
79+
}
8180
}

0 commit comments

Comments
 (0)