forked from dyc3/opentogethertube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
40 lines (38 loc) · 1.01 KB
/
cypress.config.ts
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
40
import { defineConfig } from "cypress";
import viteConfig from "./client/vite.config";
export default defineConfig({
projectId: "3utpz8",
downloadsFolder: "tests/e2e/downloads",
fixturesFolder: "tests/e2e/fixtures",
screenshotsFolder: "tests/e2e/screenshots",
videosFolder: "tests/e2e/videos",
viewportWidth: 1280,
viewportHeight: 720,
chromeWebSecurity: false,
env: {
OTT_API_KEY: `TESTAPIKEY-abcdefghijklmnopqrstuvwxyz`,
},
e2e: {
baseUrl: "http://localhost:8080/",
specPattern: "tests/e2e/integration/**/*.{js,jsx,ts,tsx}",
supportFile: "tests/e2e/support/index.ts",
excludeSpecPattern: "tests/e2e/integration/examples/**",
retries: {
runMode: 3,
},
experimentalRunAllSpecs: true,
},
component: {
supportFile: "client/tests/e2e/support/component.ts",
indexHtmlFile: "client/tests/e2e/support/component-index.html",
specPattern: "client/tests/e2e/component/**/*.cy.{js,ts}",
retries: {
runMode: 3,
},
devServer: {
framework: "vue",
bundler: "vite",
viteConfig,
},
},
});