-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcypress.config.ts
More file actions
40 lines (39 loc) · 926 Bytes
/
Copy pathcypress.config.ts
File metadata and controls
40 lines (39 loc) · 926 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
33
34
35
36
37
38
39
40
import { defineConfig } from 'cypress'
module.exports = defineConfig({
pageLoadTimeout: 120000,
defaultCommandTimeout: 120000,
video: true,
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
includeLogs: true,
charts: true,
reportPageTitle: 'Automation - Report',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
autoOpen: false,
overwrite: true,
html: true,
json: true,
},
env: {
CI: true,
HEADLESS: true
},
e2e: {
retries: {
runMode: 0,
openMode: 0
},
env: {
viewport:'macbook-15'
},
baseUrl: 'https://www.saucedemo.com',
specPattern: 'cypress/e2e/**/*.cy.ts',
setupNodeEvents(on: any, config: any) {
require('cypress-mochawesome-reporter/plugin')(on)
// Set up the 'task' event
on('task', { log(message) { console.log(message); return null; } });
}
}
})