Move files according to new cypress defaults

This commit is contained in:
Ramon Wenger 2022-09-27 14:24:26 +02:00
parent 8b031e1a8f
commit 50d51e517d
45 changed files with 35 additions and 12 deletions

23
client/cypress.config.ts Normal file
View File

@ -0,0 +1,23 @@
import { defineConfig } from 'cypress'
export default defineConfig({
videoUploadOnPasses: false,
reporter: 'junit',
reporterOptions: {
mochaFile: 'cypress/test-reports/frontend/cypress-results-[hash].xml',
toConsole: true,
},
projectId: 'msk-fe',
retries: {
runMode: 2,
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:8080',
specPattern: 'cypress/integration/frontend/**/*.{js,jsx,ts,tsx}',
},
})

View File

@ -2,8 +2,8 @@ import {defineConfig} from 'cypress';
export default defineConfig( { export default defineConfig( {
e2e: { e2e: {
"baseUrl": "http://localhost:8000", "baseUrl": "http://localhost:8000",
specPattern: 'cypress/integration/e2e/**/*.spec.{js,ts}', specPattern: 'cypress/e2e/e2e/**/*.{spec,cy}.{js,ts}',
supportFile: 'cypress/support/index.js', supportFile: 'cypress/support/e2e.js',
}, },
"videoUploadOnPasses": false, "videoUploadOnPasses": false,
"reporter": "junit", "reporter": "junit",

View File

@ -5,9 +5,9 @@ import {resolve} from "path";
export default defineConfig({ export default defineConfig({
chromeWebSecurity: false, chromeWebSecurity: false,
e2e: { e2e: {
"baseUrl": "http://localhost:8080", baseUrl: "http://localhost:8080",
specPattern: 'cypress/integration/frontend/**/*.spec.{js,ts}', specPattern: 'cypress/e2e/frontend/**/*.spec.{js,ts}',
supportFile: 'cypress/support/index.js', supportFile: 'cypress/support/e2e.js',
setupNodeEvents(on, config) { setupNodeEvents(on, config) {
on('task', { on('task', {
getSchema() { getSchema() {
@ -19,15 +19,15 @@ export default defineConfig({
}); });
}, },
}, },
"videoUploadOnPasses": false, videoUploadOnPasses: false,
"reporter": "junit", reporter: "junit",
"reporterOptions": { reporterOptions: {
"mochaFile": "cypress/test-reports/frontend/cypress-results-[hash].xml", mochaFile: "cypress/test-reports/frontend/cypress-results-[hash].xml",
"toConsole": true toConsole: true
}, },
"projectId": "msk-fe", "projectId": "msk-fe",
"retries": { retries: {
"runMode": 3 runMode: 3
} }
}); });