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( {
e2e: {
"baseUrl": "http://localhost:8000",
specPattern: 'cypress/integration/e2e/**/*.spec.{js,ts}',
supportFile: 'cypress/support/index.js',
specPattern: 'cypress/e2e/e2e/**/*.{spec,cy}.{js,ts}',
supportFile: 'cypress/support/e2e.js',
},
"videoUploadOnPasses": false,
"reporter": "junit",

View File

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