From b9a34ebb7eeb8e42ac5752f36822798f083f5027 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 3 Nov 2025 12:53:23 +1000 Subject: [PATCH] Revert to cypress 14, 15 was causing problems with executing external commands --- test/cypress/Dockerfile | 2 +- test/cypress/config/dev.js | 22 ++++++++++++++++++++++ test/package.json | 3 ++- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 test/cypress/config/dev.js diff --git a/test/cypress/Dockerfile b/test/cypress/Dockerfile index 4a2d06ea..9b835fe0 100644 --- a/test/cypress/Dockerfile +++ b/test/cypress/Dockerfile @@ -1,4 +1,4 @@ -FROM cypress/included:15.5.0 +FROM cypress/included:14.0.1 # Disable Cypress CLI colors ENV FORCE_COLOR=0 diff --git a/test/cypress/config/dev.js b/test/cypress/config/dev.js new file mode 100644 index 00000000..e2f7b6f9 --- /dev/null +++ b/test/cypress/config/dev.js @@ -0,0 +1,22 @@ +const { defineConfig } = require('cypress'); + +module.exports = defineConfig({ + requestTimeout: 30000, + defaultCommandTimeout: 20000, + reporter: 'cypress-multi-reporters', + reporterOptions: { + configFile: 'multi-reporter.json' + }, + video: true, + videosFolder: 'results/videos', + screenshotsFolder: 'results/screenshots', + e2e: { + setupNodeEvents(on, config) { + return require("../plugins/index.js")(on, config); + }, + env: { + swaggerBase: '{{baseUrl}}/api/schema?ts=' + Date.now(), + }, + baseUrl: 'http://127.0.0.1:3081', + } +}); diff --git a/test/package.json b/test/package.json index 1f053032..bb0ad4b9 100644 --- a/test/package.json +++ b/test/package.json @@ -7,7 +7,7 @@ "@jc21/cypress-swagger-validation": "^0.3.2", "@quobix/vacuum": "^0.19.4", "axios": "^1.13.1", - "cypress": "^15.5.0", + "cypress": "^14.0.1", "cypress-multi-reporters": "^2.0.5", "cypress-wait-until": "^3.0.2", "eslint": "^9.39.0", @@ -22,6 +22,7 @@ "scripts": { "cypress": "HTTP_PROXY=127.0.0.1:8128 HTTPS_PROXY=127.0.0.1:8128 cypress open --config-file=cypress/config/ci.js", "cypress:headless": "HTTP_PROXY=127.0.0.1:8128 HTTPS_PROXY=127.0.0.1:8128 cypress run --config-file=cypress/config/ci.js", + "cypress:dev": "cypress run --config-file=cypress/config/dev.js", "swagger-lint": "vacuum lint -b -q -d -a -n=warn" }, "author": "",