-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathcypress.config.js
More file actions
39 lines (31 loc) · 1.18 KB
/
Copy pathcypress.config.js
File metadata and controls
39 lines (31 loc) · 1.18 KB
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
32
33
34
35
36
37
38
39
import path from "node:path";
import { defineConfig } from "cypress";
import configCodeCoverage from "@cypress/code-coverage/task";
import "dotenv/config";
import { setupBrowserLaunch } from "./tests/Utils/cypress/browser-launch.js";
import { setupChromeForTesting } from "./tests/Utils/cypress/chrome-for-testing.js";
const baseUrl = process.env.APP_URL || "http://localhost";
export default defineConfig({
downloadsFolder: "tests/Frontend/downloads",
fixturesFolder: "tests/Frontend/fixtures",
screenshotsFolder: "tests/Frontend/screenshots",
videosFolder: "tests/Frontend/videos",
expose: {
redirectBaseUrl: "https://thm-health.github.io/PILOS-Redirect_Test_Pages",
},
e2e: {
async setupNodeEvents(on, config) {
await setupChromeForTesting(config, path.resolve("."));
configCodeCoverage(on, config);
setupBrowserLaunch(on);
// It's IMPORTANT to return the config object
// with any changed environment variables
return config;
},
baseUrl: baseUrl,
supportFile: "tests/Frontend/support/e2e.{js,jsx,ts,tsx}",
specPattern: "tests/Frontend/e2e/**/*.cy.{js,jsx,ts,tsx}",
},
viewportWidth: 1280,
viewportHeight: 800,
});