39 lines
1.4 KiB
JavaScript
39 lines
1.4 KiB
JavaScript
// The Lucia project.
|
|
// Copyright 2024-2026 DSP, inc. All rights reserved.
|
|
// Authors:
|
|
// cindy.chang@dsp.im (Cindy Chang), 2024/06/03
|
|
// imacat.yang@dsp.im (imacat), 2026/03/05
|
|
|
|
import { loginWithFixtures } from "../support/intercept";
|
|
|
|
describe("Discover page navigation tabs", () => {
|
|
beforeEach(() => {
|
|
loginWithFixtures();
|
|
cy.visit("/files");
|
|
cy.contains("sample-process.xes").should("exist");
|
|
});
|
|
|
|
it("Double-clicking a log file enters the MAP page.", () => {
|
|
cy.contains("td.fileName", "sample-process.xes").dblclick();
|
|
cy.url().should("include", "map");
|
|
// MAP tab should exist in the navbar
|
|
cy.contains(".nav-item", "MAP").should("exist");
|
|
});
|
|
|
|
it("Clicking CONFORMANCE tab switches active page.", () => {
|
|
cy.contains("td.fileName", "sample-process.xes").dblclick();
|
|
cy.url().should("include", "map");
|
|
cy.contains(".nav-item", "CONFORMANCE").click();
|
|
cy.url().should("include", "conformance");
|
|
cy.contains(".nav-item", "CONFORMANCE").should("have.class", "active");
|
|
});
|
|
|
|
it("Clicking PERFORMANCE tab switches active page.", () => {
|
|
cy.contains("td.fileName", "sample-process.xes").dblclick();
|
|
cy.url().should("include", "map");
|
|
cy.contains(".nav-item", "PERFORMANCE").click();
|
|
cy.url().should("include", "performance");
|
|
cy.contains(".nav-item", "PERFORMANCE").should("have.class", "active");
|
|
});
|
|
});
|