56 lines
2.0 KiB
JavaScript
56 lines
2.0 KiB
JavaScript
// The Lucia project.
|
|
// Copyright 2026-2026 DSP, inc. All rights reserved.
|
|
// Authors:
|
|
// imacat.yang@dsp.im (imacat), 2026/03/05
|
|
|
|
import { loginWithFixtures } from "../support/intercept";
|
|
|
|
describe("Discover Conformance Page", () => {
|
|
beforeEach(() => {
|
|
loginWithFixtures();
|
|
cy.visit("/discover/log/297310264/conformance");
|
|
cy.wait("@getLogCheckParams");
|
|
});
|
|
|
|
it("page loads and loading overlay disappears", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
});
|
|
|
|
it("displays Rule Settings sidebar", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
cy.contains("Rule Settings").should("be.visible");
|
|
});
|
|
|
|
it("displays Conformance Checking Results heading", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
cy.contains("Conformance Checking Results").should("be.visible");
|
|
});
|
|
|
|
it("displays rule type radio options", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
cy.contains("Have activity").should("be.visible");
|
|
cy.contains("Activity sequence").should("be.visible");
|
|
cy.contains("Activity duration").should("be.visible");
|
|
cy.contains("Processing time").should("be.visible");
|
|
cy.contains("Waiting time").should("be.visible");
|
|
cy.contains("Cycle time").should("be.visible");
|
|
});
|
|
|
|
it("displays Clear and Apply buttons", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
cy.contains("button", "Clear").should("be.visible");
|
|
cy.contains("button", "Apply").should("exist");
|
|
});
|
|
|
|
it("displays Activity list area", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
cy.contains("Activity list").should("be.visible");
|
|
});
|
|
|
|
it("displays default placeholder values in results", () => {
|
|
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
|
cy.contains("Conformance Rate").should("be.visible");
|
|
cy.contains("Cases").should("be.visible");
|
|
});
|
|
});
|