Skip to content

Commit c36be9e

Browse files
committed
Updates to add clear session storage for renewal testcases
1 parent d0050cb commit c36be9e

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/cypress/e2e/ui/renewCertifications/renewECE5Year/renewExpiredECE5YearCertification-ExpiredLessThan5Years.cy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,5 @@ describe("Renew Expired ECE 5 Year Certificate Application", () => {
9696
cy.document().its("readyState").should("eq", "complete");
9797
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
9898
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
99-
cy.resetBrowserState();
10099
});
101100
});

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/cypress/e2e/ui/renewCertifications/renewECE5Year/renewExpiredECE5YearCertification-ExpiredMoreThan5Years.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ describe("Renew Expired (for more than 5 Years) ECE 5 Year Certificate Applicati
9292
cy.document().its("readyState").should("eq", "complete");
9393
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
9494
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
95-
cy.resetBrowserState();
95+
Cypress.session.clearAllSavedSessions();
9696
});
9797
});

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/cypress/e2e/ui/renewCertifications/renewECE5YearPlusITEandSNE/renewActiveECE5YearPlusITEandSNECertification.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ describe("Renew Active ECE 5 Year Plus ITE & SNE Certificate Application", () =>
9292
cy.document().its("readyState").should("eq", "complete");
9393
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
9494
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
95-
cy.resetBrowserState();
95+
Cypress.session.clearAllSavedSessions();
9696
});
9797
});

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/cypress/e2e/ui/renewCertifications/renewECE5YearPlusITEandSNE/renewExpiredECE5YearPlusITEandSNECertification-ExpiredLessThan5Years.cy.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,4 @@ describe("Renew Expired ECE 5 Year Plus ITE & SNE Certificate Application", () =
9696
cy.document().its("readyState").should("eq", "complete");
9797
cy.get(selectors.applicationSubmitted.pageTitle).should("be.visible").should("contain.text", "Application Submitted");
9898
cy.get(selectors.applicationSubmitted.applicationSummaryButton).should("be.visible").should("contain.text", "Go to application summary");
99-
cy.resetBrowserState();
100-
});
10199
});

0 commit comments

Comments
 (0)