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:
@@ -11,7 +11,7 @@ describe("Compare", () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
cy.contains("li", "COMPARE").click();
|
||||
});
|
||||
|
||||
@@ -55,7 +55,6 @@ describe("Compare", () => {
|
||||
cy.get("#compareFile0").drag("#primaryDragCard");
|
||||
cy.get("#compareFile1").drag("#secondaryDragCard");
|
||||
cy.contains("button", "Compare").click();
|
||||
cy.wait("@getCompare");
|
||||
cy.url().should("include", "compare");
|
||||
|
||||
// Assert chart title spans are visible
|
||||
@@ -73,7 +72,6 @@ describe("Compare", () => {
|
||||
cy.get("#compareFile0").drag("#primaryDragCard");
|
||||
cy.get("#compareFile1").drag("#secondaryDragCard");
|
||||
cy.contains("button", "Compare").click();
|
||||
cy.wait("@getCompare");
|
||||
|
||||
cy.get("#compareState").should("exist").and("be.visible");
|
||||
});
|
||||
@@ -82,7 +80,6 @@ describe("Compare", () => {
|
||||
cy.get("#compareFile0").drag("#primaryDragCard");
|
||||
cy.get("#compareFile1").drag("#secondaryDragCard");
|
||||
cy.contains("button", "Compare").click();
|
||||
cy.wait("@getCompare");
|
||||
|
||||
cy.get("aside").should("exist");
|
||||
cy.get("aside li").should("have.length.greaterThan", 0);
|
||||
|
||||
Reference in New Issue
Block a user