default to 5000 but tests are failing because of slow Jenkins's nodes. We could try and extend to 10000 (10s) and see if it gets better. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Tests pass with and without the patch on my computer. Tested with: yarn cypress run --env KOHA_USER=koha,KOHA_PASS=koha \ --spec t/cypress/integration/ERM/Agreements_spec.ts Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
34 lines
910 B
TypeScript
34 lines
910 B
TypeScript
import { defineConfig } from "cypress";
|
|
|
|
export default defineConfig({
|
|
fixturesFolder: "t/cypress/fixtures",
|
|
screenshotsFolder: "t/cypress/screenshots",
|
|
videosFolder: "t/cypress/videos",
|
|
defaultCommandTimeout: 10000,
|
|
requestTimeout: 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",
|
|
},
|
|
},
|
|
});
|