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:
@@ -10,7 +10,7 @@ describe("SweetAlert2 Modals", () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
});
|
||||
|
||||
it("right-click on table row shows context menu with Rename", () => {
|
||||
@@ -79,7 +79,7 @@ describe("SweetAlert2 Modals", () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
// Switch to grid view
|
||||
cy.get("svg").parent("li.cursor-pointer").last().click();
|
||||
});
|
||||
@@ -102,15 +102,15 @@ describe("SweetAlert2 Modals", () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit("/account-admin");
|
||||
cy.wait("@getUsers");
|
||||
cy.contains("Test Admin").should("exist");
|
||||
});
|
||||
|
||||
it("delete confirmation Yes button triggers delete API", () => {
|
||||
cy.get(".delete-account").first().click();
|
||||
cy.get("#modal_container").should("be.visible");
|
||||
cy.get("#sure_to_delete_acct_btn").click();
|
||||
cy.wait("@deleteUser");
|
||||
// Modal should close after deletion
|
||||
cy.get("#modal_container").should("not.exist");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user