diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 758aad9068..4fcefe5ee2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -44,6 +44,7 @@ jobs: spec: "./scripts/cypress/integration/test/masterSuiteRest.js" wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" wait-on-timeout: 1200 + config-file: scripts/cypress.json cypress-graphql-run: runs-on: ubuntu-20.04 steps: @@ -78,6 +79,7 @@ jobs: spec: "./scripts/cypress/integration/test/masterSuiteGql.js" wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js" wait-on-timeout: 1200 + config-file: scripts/cypress.json docker: runs-on: ubuntu-latest steps: diff --git a/package.json b/package.json index 699f2e0238..fe6941ec51 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "start:api": "cd ./packages/nocodb; npm install; npm run watch:run", "start:web": "cd ./packages/nc-gui; npm install; npm run dev", - "cypress:run": "cypress run", + "cypress:run": "cypress run --config-file ./scripts/cypress.json", "cypress:open": "cypress open", "test:travis": "git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna run test:travis --since", "lerna:install": "git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna bootstrap --ignore nc-cli --since", diff --git a/scripts/cypress.json b/scripts/cypress.json index da4f881479..a3c7af9e27 100644 --- a/scripts/cypress.json +++ b/scripts/cypress.json @@ -21,5 +21,12 @@ "xcdbREST", "xcdbREST", "can configure multiple too, seperated by a . as in extREST.extGQL" - ] + ], + "fixturesFolder": "scripts/cypress/fixtures", + "integrationFolder": "scripts/cypress/integration", + "pluginsFile": "scripts/cypress/plugins/index.js", + "screenshotsFolder": "scripts/cypress/screenshots", + "videosFolder": "scripts/cypress/videos", + "downloadsFolder": "scripts/cypress/downloads", + "supportFile": "scripts/cypress/support/index.js" }