-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcypress.config.js
44 lines (42 loc) · 1.23 KB
/
cypress.config.js
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
const {defineConfig} = require('cypress');
const cypressGrep = require('@cypress/grep/src/plugin');
const dotenvPlugin = require('cypress-dotenv');
const {downloadFile} = require('cypress-downloadfile/lib/addPlugin');
module.exports = (on) => {
on('task', {
generateOTP: require('cypress-otp'),
});
};
module.exports = defineConfig({
e2e: {
'baseUrl': 'https://staging.trade-tariff.service.gov.uk',
setupNodeEvents(on, config) {
on('task', {generateOTP: require('cypress-otp')});
on('task', {downloadFile});
config = dotenvPlugin(config, {}, true);
config = cypressGrep(config);
return config;
},
'accessibility': true,
'fixtures_timestamp': '2021-02-09',
'chromeWebSecurity': false,
'firefoxWebSecurity': false,
'video': false,
'screenshotOnRunFailure': true,
'projectId': '7p655m',
'parseSpecialCharSequences': false,
'defaultCommandTimeout': 20000,
'responseTimeout': 60000,
'reporter': 'mochawesome',
'reporterOptions': {
'reportDir': 'cypress/reports',
'overwrite': false,
'html': false,
'json': true,
},
'env': {
'baseUrl': 'https://staging.trade-tariff.service.gov.uk',
'grepFilterSpecs': true,
},
},
});