From 6f02553248c66adf1b44c48986b00fc411a662a9 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 12 Apr 2024 15:28:36 -0400 Subject: [PATCH] update cypress selectors --- apps/parsley/cypress/integration/project_filters.ts | 2 +- .../version/unscheduled_patch/configure_patch.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/parsley/cypress/integration/project_filters.ts b/apps/parsley/cypress/integration/project_filters.ts index 4a492ba79..58950c024 100644 --- a/apps/parsley/cypress/integration/project_filters.ts +++ b/apps/parsley/cypress/integration/project_filters.ts @@ -35,6 +35,6 @@ describe("project filters", () => { cy.visit(`${resmokeLogLink}?filters=100D%255Cd`); cy.contains("View project filters").click(); cy.dataCy("project-filters-modal").should("be.visible"); - cy.getInputByLabel("D\\d").should("be.disabled"); + cy.getInputByLabel("D\\d").should("have.attr", "aria-disabled", "true"); }); }); diff --git a/apps/spruce/cypress/integration/version/unscheduled_patch/configure_patch.ts b/apps/spruce/cypress/integration/version/unscheduled_patch/configure_patch.ts index e21952ca4..a74282c3c 100644 --- a/apps/spruce/cypress/integration/version/unscheduled_patch/configure_patch.ts +++ b/apps/spruce/cypress/integration/version/unscheduled_patch/configure_patch.ts @@ -497,7 +497,11 @@ describe("Configure Patch Page", () => { it("Should show one disabled task", () => { cy.dataCy("alias-task-checkbox").should("have.length", 1); - cy.dataCy("alias-task-checkbox").should("have.attr", "disabled"); + cy.dataCy("alias-task-checkbox").should( + "have.attr", + "aria-disabled", + "true", + ); cy.dataCy("alias-task-checkbox").should("not.be.checked"); });