diff --git a/batect.yml b/batect.yml index f8a84a1..bd0cb75 100644 --- a/batect.yml +++ b/batect.yml @@ -35,7 +35,7 @@ containers: timeout: 1s cypress: - image: cypress/included:9.7.0 + image: cypress/included:10.4.0 volumes: - local: . container: /app @@ -61,6 +61,6 @@ tasks: description: Run the Cypress tests. run: container: cypress - command: cypress run --config baseUrl=http://app:8352 + command: cypress run dependencies: - app diff --git a/cypress.config.js b/cypress.config.js new file mode 100644 index 0000000..f15f338 --- /dev/null +++ b/cypress.config.js @@ -0,0 +1,7 @@ +const { defineConfig } = require('cypress') + +module.exports = defineConfig({ + e2e: { + baseUrl: 'http://app:8352' + } +}) diff --git a/cypress.json b/cypress.json deleted file mode 100644 index 0967ef4..0000000 --- a/cypress.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/cypress/integration/app.spec.js b/cypress/e2e/app.cy.js similarity index 100% rename from cypress/integration/app.spec.js rename to cypress/e2e/app.cy.js diff --git a/cypress/support/index.js b/cypress/support/e2e.js similarity index 92% rename from cypress/support/index.js rename to cypress/support/e2e.js index d68db96..d1dd135 100644 --- a/cypress/support/index.js +++ b/cypress/support/e2e.js @@ -1,5 +1,5 @@ // *********************************************************** -// This example support/index.js is processed and +// This example support/e2e.js is processed and // loaded automatically before your test files. // // This is a great place to put global configuration and