Koha/cypress.config.ts
Jonathan Druart f6ec375be2
Bug 36177: Add Cypress tests
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-12 17:47:34 +01:00

33 lines
883 B
TypeScript

import { defineConfig } from "cypress";
export default defineConfig({
fixturesFolder: "t/cypress/fixtures",
screenshotsFolder: "t/cypress/screenshots",
videosFolder: "t/cypress/videos",
defaultCommandTimeout: 10000,
e2e: {
setupNodeEvents(on, config) {
return require("./t/cypress/plugins/index.js")(on, config);
},
experimentalStudio: true,
baseUrl: "http://localhost:8081",
specPattern: "t/cypress/integration/**/*.*",
supportFile: "t/cypress/support/e2e.js",
env: {
db: {
host: "db",
user: "koha_kohadev",
password: "password",
database: "koha_kohadev",
},
},
},
component: {
devServer: {
framework: "vue-cli",
bundler: "webpack",
},
},
});