-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
31 lines (28 loc) · 978 Bytes
/
cypress.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const { defineConfig } = require("cypress");
const createBundler = require("@bahmutov/cypress-esbuild-preprocessor");
const addCucumberPreprocessorPlugin =
require("@badeball/cypress-cucumber-preprocessor").addCucumberPreprocessorPlugin;
const createEsbuildPlugin =
require("@badeball/cypress-cucumber-preprocessor/esbuild").createEsbuildPlugin;
module.exports = defineConfig({
e2e: {
async setupNodeEvents(on, config) {
const bundler = createBundler({
plugins: [createEsbuildPlugin(config)],
});
on("file:preprocessor", bundler);
await addCucumberPreprocessorPlugin(on, config);
return config;
},
projectId: "gbfmax",
experimentalStudio: true,
baseUrl: "https://demoqa.com",
defaultCommandTimeout: 10000,
specPattern: [
"cypress/e2e/features/*.feature",
"cypress/e2e/features/*/*.feature"],
viewportWidth: 1280, //macbook-13
viewportHeight: 800,
chromeWebSecurity: false
}
});