From fc200231d718e5a32ed23cf78bcfec18012b2c97 Mon Sep 17 00:00:00 2001 From: Aaro Koivukangas Date: Thu, 26 Sep 2024 13:00:43 +0200 Subject: [PATCH] changed cypress env variable name --- cypress.config.js | 2 +- cypress/e2e/asAdmin.cy.js | 2 +- cypress/e2e/misc.cy.js | 2 +- cypress/e2e/ui.cy.js | 2 +- cypress/e2e/userRights.cy.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress.config.js b/cypress.config.js index 9e9d7ea4..2527b217 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -8,7 +8,7 @@ module.exports = defineConfig({ baseUrl: 'http://localhost:5173/', }, env: { - backendUrl: "http://backend:4000/test/reset-test-database" + databaseResetUrl: "http://backend:4000/test/reset-test-database" }, viewportHeight: 900, viewportWidth: 1200, diff --git a/cypress/e2e/asAdmin.cy.js b/cypress/e2e/asAdmin.cy.js index 7d27fd6e..db7a42b3 100644 --- a/cypress/e2e/asAdmin.cy.js +++ b/cypress/e2e/asAdmin.cy.js @@ -1,5 +1,5 @@ before('Reset database', () => { - cy.request(Cypress.env("backendUrl")); + cy.request(Cypress.env("databaseResetUrl")); }); describe('Open each page, table view and detail view, and check at least some correct text appears', () => { diff --git a/cypress/e2e/misc.cy.js b/cypress/e2e/misc.cy.js index 7e58f248..a277209e 100644 --- a/cypress/e2e/misc.cy.js +++ b/cypress/e2e/misc.cy.js @@ -22,7 +22,7 @@ const doesNotHaveStagingMode = (viewUrl) => { } before('Reset database', () => { - cy.request(Cypress.env("backendUrl")); + cy.request(Cypress.env("databaseResetUrl")); }); describe('Test individual features across the app', () => { diff --git a/cypress/e2e/ui.cy.js b/cypress/e2e/ui.cy.js index f9f4f506..f80a35f7 100644 --- a/cypress/e2e/ui.cy.js +++ b/cypress/e2e/ui.cy.js @@ -4,7 +4,7 @@ */ before('Reset database', () => { - cy.request(Cypress.env("backendUrl")); + cy.request(Cypress.env("databaseResetUrl")); }); describe('Button Tests', () => { diff --git a/cypress/e2e/userRights.cy.js b/cypress/e2e/userRights.cy.js index b93f2b2a..a4c5f19b 100644 --- a/cypress/e2e/userRights.cy.js +++ b/cypress/e2e/userRights.cy.js @@ -1,5 +1,5 @@ before('Reset database', () => { - cy.request(Cypress.env("backendUrl")); + cy.request(Cypress.env("databaseResetUrl")); }); describe('Broadly test what different user rights see', () => {