From 3d5169bbdd5c21d5090697880cd67be5171cb59f Mon Sep 17 00:00:00 2001 From: Patrick Burns Date: Sun, 7 Apr 2024 19:25:23 -0500 Subject: [PATCH] move request to the before on the station tests --- cypress/e2e/4-station-locations.cy.js | 6 ++++++ script.sh | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/4-station-locations.cy.js b/cypress/e2e/4-station-locations.cy.js index 1e3104fa..9f4496b2 100644 --- a/cypress/e2e/4-station-locations.cy.js +++ b/cypress/e2e/4-station-locations.cy.js @@ -1,4 +1,10 @@ describe("Create station location", () => { + before(() => { + cy.request({ + method: "GET", + url: "/index.php/update/dxcc_entities", + }).wait(1000); + }); beforeEach(() => { cy.login(); }); diff --git a/script.sh b/script.sh index 0581b3a3..c1447f8f 100755 --- a/script.sh +++ b/script.sh @@ -79,8 +79,5 @@ rm -rf /install echo "Replacement complete." -# Send a GET request to populate the dxcc_entities table -curl "${WEBSITE_URL}/index.php/update/dxcc_entities" - # Start Apache in the foreground exec apache2-foreground \ No newline at end of file