Skip to content

Commit e7791c2

Browse files
committed
Updated cypress entirely
1 parent 0461689 commit e7791c2

15 files changed

+33
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ backend/embed/acme.sh
2424
docker/dev/resolv.conf
2525
docker/dev/dnsrouter-config.json.tmp
2626
thunder-tests
27+
test/cypress/videos

test/cypress/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM cypress/included:9.4.1
1+
FROM cypress/included:12.13.0
22

33
COPY --chown=1000 ./test /test
44

test/cypress/config/dev.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const { defineConfig } = require('cypress');
2+
3+
module.exports = defineConfig({
4+
requestTimeout: 30000,
5+
defaultCommandTimeout: 20000,
6+
reporter: 'cypress-multi-reporters',
7+
reporterOptions: {
8+
configFile: 'multi-reporter.json'
9+
},
10+
videos: false,
11+
screenshotsFolder: 'results/screenshots',
12+
env: {
13+
swaggerBase: '{{baseUrl}}/api/schema',
14+
RETRIES: 0
15+
},
16+
e2e: {
17+
// baseUrl: '{{baseUrl}}',
18+
setupNodeEvents(on, config) {
19+
return require('../plugins/index.js')(on, config);
20+
},
21+
}
22+
});

0 commit comments

Comments
 (0)