From b176d95d3dcfb7ba88568c81f0055f338f506ce6 Mon Sep 17 00:00:00 2001 From: Michael-McFaddin <52680887+Michael-McFaddin@users.noreply.github.com> Date: Thu, 27 Jul 2023 21:01:50 -0400 Subject: [PATCH] feat: added wait for deleteBoilerplate --- .gitignore | 6 ++++++ cypress/e2e/boilerplate-e2e/grantShow.cy.js | 1 + 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 2fa56e49..fb813e80 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,9 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +# cypress testing +/cypress/videos +/cypress/screenshots +/cypress/reports +/cypress/fixtures \ No newline at end of file diff --git a/cypress/e2e/boilerplate-e2e/grantShow.cy.js b/cypress/e2e/boilerplate-e2e/grantShow.cy.js index 827b3e1a..ac7769f6 100644 --- a/cypress/e2e/boilerplate-e2e/grantShow.cy.js +++ b/cypress/e2e/boilerplate-e2e/grantShow.cy.js @@ -176,6 +176,7 @@ describe("View a Grant on the Grants Show page", () => { cy.get("a:contains('Section To Boilerplate Test')").first().click(); cy.get("button:contains('Edit')").click(); cy.get("button:contains('Delete')").click(); + cy.wait("@deleteBoilerplate"); cy.reload(); cy.get("tr").last().should("not.contain", "Section To Boilerplate Test");