-
Notifications
You must be signed in to change notification settings - Fork 51
/
cypress.config.ts
49 lines (46 loc) · 1.06 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
41
42
43
44
45
46
47
48
49
import { defineConfig } from "cypress";
export default defineConfig({
defaultCommandTimeout: 10000,
e2e: {
// block analytics
blockHosts: [
"www.googletagmanager.com",
"www.google-analytics.com",
"sentry.is.canonical.com",
],
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
on("task", {
log(args) {
console.log(args);
return null;
},
table(message) {
console.table(message);
return null;
},
});
return config;
},
baseUrl: "http://0.0.0.0:8400",
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
viewportHeight: 1300,
viewportWidth: 1440,
},
env: {
BASENAME: "/MAAS",
VITE_BASENAME: "/r",
nonAdminPassword: "test",
nonAdminUsername: "user",
password: "test",
skipA11yFailures: false,
username: "admin",
},
projectId: "gp2cox",
retries: {
runMode: 2,
openMode: 0,
},
video: false,
});