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:
@@ -9,7 +9,7 @@ describe("Files to Discover Entry Flow", () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit("/files");
|
||||
cy.wait("@getFiles");
|
||||
cy.contains("sample-process.xes").should("exist");
|
||||
});
|
||||
|
||||
describe("double-click table row to enter Discover", () => {
|
||||
@@ -17,14 +17,12 @@ describe("Files to Discover Entry Flow", () => {
|
||||
// Target the Name column (has class .fileName) to avoid matching Dependency column
|
||||
cy.contains("td.fileName", "sample-process.xes").parent("tr").dblclick();
|
||||
cy.url().should("include", "/discover/log/1/map");
|
||||
cy.wait("@getDiscover");
|
||||
cy.get("#cy").should("exist");
|
||||
});
|
||||
|
||||
it("double-click filter file navigates to Map page", () => {
|
||||
cy.contains("td.fileName", "filtered-sample").parent("tr").dblclick();
|
||||
cy.url().should("include", "/discover/filter/10/map");
|
||||
cy.wait("@getFilterDiscover");
|
||||
cy.get("#cy").should("exist");
|
||||
});
|
||||
});
|
||||
@@ -39,7 +37,6 @@ describe("Files to Discover Entry Flow", () => {
|
||||
// Use last() to target the All Files grid section (not Recently Used)
|
||||
cy.get('li[title="sample-process.xes"]').last().dblclick();
|
||||
cy.url().should("include", "/discover/log/1/map");
|
||||
cy.wait("@getDiscover");
|
||||
cy.get("#cy").should("exist");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user