-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcypress.config.ts
46 lines (45 loc) · 1.14 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
import { defineConfig } from 'cypress'
// export default defineConfig({
export default defineConfig({
viewportWidth: 1314,
viewportHeight: 954,
// video: false,
defaultCommandTimeout: 10000,
pageLoadTimeout:30000,
// numTestsKeptInMemory:25,
reporter: 'mochawesome',
reporterOptions: {
reportFilename: '[name]-report_[status]_[datetime]',
timestamp: 'shortDate',
},
clientCertificates: [
{
url: 'https://*',
ca: [],
certs: [
{
cert: 'cypress/fixtures/epinio-private-cert-pem.file',
key: 'cypress/fixtures/epinio-private-key-pem.file',
},
],
},
],
e2e: {
// 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(message) {
console.log(message)
return null
},
})
require('./cypress/plugins/index.ts')(on, config)
require('@cypress/grep/src/plugin')(config);
return config;
},
experimentalSessionAndOrigin: true,
specPattern:
'cypress/e2e/unit_tests/*.spec.ts',
},
})