Skip to content

Commit

Permalink
fix: grant.cy test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-McFaddin committed Jul 1, 2023
1 parent 98f0b6f commit f07c816
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/boilerplate-e2e/grant.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit f07c816

Please sign in to comment.