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);
});
/**