From f07c816999d5078b02eb7b8473fae34d6085f9f1 Mon Sep 17 00:00:00 2001 From: Michael-McFaddin <52680887+Michael-McFaddin@users.noreply.github.com> Date: Fri, 30 Jun 2023 21:07:35 -0400 Subject: [PATCH] fix: grant.cy test --- cypress/e2e/boilerplate-e2e/grant.cy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/boilerplate-e2e/grant.cy.js b/cypress/e2e/boilerplate-e2e/grant.cy.js index 2594ca0f..d8521e44 100644 --- a/cypress/e2e/boilerplate-e2e/grant.cy.js +++ b/cypress/e2e/boilerplate-e2e/grant.cy.js @@ -133,14 +133,14 @@ describe("Create a new grant from Grants index", () => { cy.get('[data-testid="Make a Copy"]').last().click(); cy.get("button:contains('Save')").click(); }); - cy.wait("@createGrant"); cy.get("h1:contains('copy')"); - + cy.wait("@getGrant"); // Go to All and send the new copy to Archived cy.get("a:contains('Back to All Grants')").click(); - cy.wait("@getGrant"); + + cy.reload(); // TODO: See about removing this reload cy.get("h1:contains('All Grants')"); - cy.get("tr").should("have.length.greaterThan", grantCount); + cy.get("tr").should("have.length.greaterThan", grantCount + 1); cy.get("tr") .last() .should("contain", `Test New Grant Name ${grantCount + 1} copy`);