Koha/cypress.config.ts
Jonathan Druart 4f45300d91
Bug 34319: Upgrade cypress 9.7.0 to 12.17.2
We are currently using 9.7.0. Since 10 the config file structure changed, and has been renamed cypress.json to cypress.config.ts

https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-version-10-0

Also cypress-studio (used for bug 34076) is not working on 9.7.0.

Test plan:
yarn install
yarn build
mv /root/.cache/Cypress/12.17.2/ /kohadevbox/Cypress/
perl /kohadevbox/misc4dev/run_tests.pl --run-cypress-tests-only

You should not get any failures from the tests.

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-05 11:52:25 -03:00

22 lines
557 B
TypeScript

import { defineConfig } from "cypress";
export default defineConfig({
fixturesFolder: "t/cypress/fixtures",
screenshotsFolder: "t/cypress/screenshots",
videosFolder: "t/cypress/videos",
defaultCommandTimeout: 10000,
e2e: {
experimentalStudio: true,
baseUrl: "http://localhost:8081",
specPattern: "t/cypress/integration/**/*.*",
supportFile: "t/cypress/support/e2e.js",
},
component: {
devServer: {
framework: "vue-cli",
bundler: "webpack",
},
},
});