Use String.raw for backslash-escaped CSS selectors in Cypress tests (S7780)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,21 +13,21 @@ describe("Discover Conformance Page", () => {
|
||||
});
|
||||
|
||||
it("page loads and loading overlay disappears", () => {
|
||||
cy.get(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
||||
});
|
||||
|
||||
it("displays Rule Settings sidebar", () => {
|
||||
cy.get(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
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(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
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(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
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");
|
||||
@@ -37,18 +37,18 @@ describe("Discover Conformance Page", () => {
|
||||
});
|
||||
|
||||
it("displays Clear and Apply buttons", () => {
|
||||
cy.get(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
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(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
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(".z-\\[9999\\]", { timeout: 10000 }).should("not.exist");
|
||||
cy.get(String.raw`.z-\[9999\]`, { timeout: 10000 }).should("not.exist");
|
||||
cy.contains("Conformance Rate").should("be.visible");
|
||||
cy.contains("Cases").should("be.visible");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user