Migrate Cypress E2E from cy.intercept to MSW service worker
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ describe("Logout Flow", () => {
|
||||
|
||||
it("shows account menu when head icon is clicked", () => {
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
|
||||
// Click the head icon to open account menu
|
||||
cy.get("#acct_mgmt_button").click();
|
||||
@@ -22,7 +22,7 @@ describe("Logout Flow", () => {
|
||||
|
||||
it("account menu shows admin management link for admin user", () => {
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
|
||||
cy.get("#acct_mgmt_button").click();
|
||||
cy.get("#account_menu").should("be.visible");
|
||||
@@ -32,7 +32,7 @@ describe("Logout Flow", () => {
|
||||
|
||||
it("account menu has logout button", () => {
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
|
||||
cy.get("#acct_mgmt_button").click();
|
||||
cy.get("#btn_logout_in_menu").should("exist");
|
||||
@@ -40,7 +40,7 @@ describe("Logout Flow", () => {
|
||||
|
||||
it("clicking My Account navigates to /my-account", () => {
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
|
||||
cy.get("#acct_mgmt_button").click();
|
||||
cy.get("#btn_mang_ur_acct").click();
|
||||
@@ -49,7 +49,7 @@ describe("Logout Flow", () => {
|
||||
|
||||
it("clicking Account Management navigates to /account-admin", () => {
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
|
||||
cy.get("#acct_mgmt_button").click();
|
||||
cy.get("#btn_acct_mgmt").click();
|
||||
@@ -58,7 +58,7 @@ describe("Logout Flow", () => {
|
||||
|
||||
it("logout redirects to login page", () => {
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
|
||||
cy.get("#acct_mgmt_button").click();
|
||||
cy.get("#btn_logout_in_menu").click();
|
||||
|
||||
Reference in New Issue
Block a user