changed cypress env variable name

This commit is contained in:
Aaro Koivukangas
2024-09-27 12:22:48 +03:00
committed by Eero Antikainen
parent 31d5ca8add
commit fc200231d7
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = defineConfig({
baseUrl: 'http://localhost:5173/', baseUrl: 'http://localhost:5173/',
}, },
env: { env: {
backendUrl: "http://backend:4000/test/reset-test-database" databaseResetUrl: "http://backend:4000/test/reset-test-database"
}, },
viewportHeight: 900, viewportHeight: 900,
viewportWidth: 1200, viewportWidth: 1200,
+1 -1
View File
@@ -1,5 +1,5 @@
before('Reset database', () => { 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', () => { describe('Open each page, table view and detail view, and check at least some correct text appears', () => {
+1 -1
View File
@@ -22,7 +22,7 @@ const doesNotHaveStagingMode = (viewUrl) => {
} }
before('Reset database', () => { before('Reset database', () => {
cy.request(Cypress.env("backendUrl")); cy.request(Cypress.env("databaseResetUrl"));
}); });
describe('Test individual features across the app', () => { describe('Test individual features across the app', () => {
+1 -1
View File
@@ -4,7 +4,7 @@
*/ */
before('Reset database', () => { before('Reset database', () => {
cy.request(Cypress.env("backendUrl")); cy.request(Cypress.env("databaseResetUrl"));
}); });
describe('Button Tests', () => { describe('Button Tests', () => {
+1 -1
View File
@@ -1,5 +1,5 @@
before('Reset database', () => { before('Reset database', () => {
cy.request(Cypress.env("backendUrl")); cy.request(Cypress.env("databaseResetUrl"));
}); });
describe('Broadly test what different user rights see', () => { describe('Broadly test what different user rights see', () => {