Cypress upgrade

This commit is contained in:
Jamie Curnow
2024-05-21 13:06:24 +10:00
parent 52bd7b1d8f
commit ac0074ea86
13 changed files with 389 additions and 284 deletions

View File

@ -1,4 +1,4 @@
FROM cypress/included:12.13.0
FROM cypress/included:13.9.0
COPY --chown=1000 ./test /test

View File

@ -7,15 +7,16 @@ module.exports = defineConfig({
reporterOptions: {
configFile: 'multi-reporter.json'
},
video: true,
videosFolder: 'results/videos',
screenshotsFolder: 'results/screenshots',
env: {
swaggerBase: '{{baseUrl}}/api/schema',
RETRIES: 4
},
e2e: {
e2e: {
setupNodeEvents(on, config) {
return require('../plugins/index.js')(on, config);
},
}
env: {
swaggerBase: '{{baseUrl}}/api/schema',
},
baseUrl: 'http://localhost:1234',
},
});

View File

@ -7,16 +7,14 @@ module.exports = defineConfig({
reporterOptions: {
configFile: 'multi-reporter.json'
},
videos: false,
video: false,
screenshotsFolder: 'results/screenshots',
env: {
swaggerBase: '{{baseUrl}}/api/schema',
RETRIES: 0
},
e2e: {
// baseUrl: '{{baseUrl}}',
e2e: {
setupNodeEvents(on, config) {
return require('../plugins/index.js')(on, config);
},
env: {
swaggerBase: '{{baseUrl}}/api/schema',
},
}
});

View File

@ -1,5 +0,0 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

View File

@ -19,7 +19,6 @@ Cypress.Commands.add('randomString', (length) => {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
// cy.wrap(result);
});
/**

View File

@ -4,19 +4,19 @@
"description": "",
"main": "index.js",
"dependencies": {
"@jc21/cypress-swagger-validation": "^0.2.1",
"@jc21/cypress-swagger-validation": "^0.2.6",
"@jc21/restler": "^3.4.0",
"chalk": "^4.1.0",
"cypress": "^12.13.0",
"cypress-multi-reporters": "^1.6.3",
"cypress-wait-until": "^1.7.2",
"eslint": "^8.41.0",
"cypress": "^13.9.0",
"cypress-multi-reporters": "^1.6.4",
"cypress-wait-until": "^3.0.1",
"eslint": "^9.3.0",
"eslint-plugin-align-assignments": "^1.1.2",
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-chai-friendly": "^0.7.4",
"eslint-plugin-cypress": "^3.2.0",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.0"
"mocha": "^10.4.0",
"mocha-junit-reporter": "^2.2.1"
},
"scripts": {
"cypress": "cypress open --config-file=cypress/config/dev.js --config baseUrl=${BASE_URL:-http://127.0.0.1:3081}",

File diff suppressed because it is too large Load Diff