From e70f8b86724d9c70783373d0a643812a92049f97 Mon Sep 17 00:00:00 2001 From: BearHanded Date: Wed, 26 Jul 2023 18:43:27 -0400 Subject: [PATCH] target the filter button not instruction --- tests/cypress/tests/integration/submitAndUncertify.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/cypress/tests/integration/submitAndUncertify.spec.js b/tests/cypress/tests/integration/submitAndUncertify.spec.js index 8af8937f1..b2cb3daa2 100644 --- a/tests/cypress/tests/integration/submitAndUncertify.spec.js +++ b/tests/cypress/tests/integration/submitAndUncertify.spec.js @@ -4,7 +4,6 @@ const headerDropdownMenu = "[data-testid='headerDropDownMenu']"; const actionButton = "[data-testid='report-action-button']"; const certifySubmitButton = "[data-testid='certifySubmit']"; const uncertifyButton = "[data-testid='uncertifyButton']"; - describe("CARTS Submit and Uncertify Integration Tests", () => { before(() => { cy.visit("/"); @@ -22,7 +21,7 @@ describe("CARTS Submit and Uncertify Integration Tests", () => { cy.get(".dropdown-heading").first().click(); cy.contains("Alabama").click(); cy.get("body").click(0, 0); - cy.contains("Filter").click(); + cy.get(".filter-button").contains("Filter").click(); cy.wait(3000); if ($body.find(uncertifyButton).length > 0) { @@ -64,7 +63,7 @@ describe("CARTS Submit and Uncertify Integration Tests", () => { cy.get(".dropdown-heading").first().click(); cy.contains("Alabama").click(); cy.get("body").click(0, 0); - cy.contains("Filter").click(); + cy.get(".filter-button").contains("Filter").click(); cy.wait(3000); cy.get(uncertifyButton).first().contains("Uncertify").click();