-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcypress.config.ts
More file actions
32 lines (31 loc) · 857 Bytes
/
Copy pathcypress.config.ts
File metadata and controls
32 lines (31 loc) · 857 Bytes
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
import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
baseUrl: "http://localhost:3000",
viewportWidth: 1280,
viewportHeight: 720,
video: false,
screenshotOnRunFailure: true,
defaultCommandTimeout: 10000,
requestTimeout: 10000,
responseTimeout: 10000,
setupNodeEvents(on, config) {
// implement node event listeners here
},
env: {
// Test environment variables
JELLYFIN_SERVER_URL: "http://localhost:8096",
TEST_USERNAME: "cypress-test-user",
},
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}",
supportFile: "cypress/support/e2e.ts",
},
component: {
devServer: {
framework: "next",
bundler: "webpack",
},
specPattern: "cypress/component/**/*.cy.{js,jsx,ts,tsx}",
supportFile: "cypress/support/component.ts",
},
});