e2e/conf/chrome.js (view raw)
1'use strict';
2
3/* eslint-disable jsdoc/valid-types */
4const config = {
5 waitforTimeout: 6000,
6 connectionRetryTimeout: 90000,
7 connectionRetryCount: 3,
8 runner: 'local',
9 deprecationWarnings: true,
10 bail: 0,
11 hostname: 'chromedriver',
12 path: '/',
13 capabilities: [
14 {
15 // Set maxInstances to 1 if screen recordings are enabled:
16 // maxInstances: 1,
17 browserName: 'chrome',
18 'goog:chromeOptions': {
19 // Disable headless mode if screen recordings are enabled:
20 args: ['--headless', '--window-size=1440,900'],
21 },
22 },
23 ],
24 framework: 'cucumber',
25 baseUrl: process.env.BASE_URL,
26 logLevel: 'warn',
27 reporters: [
28 'spec',
29 [
30 'allure',
31 {
32 outputDir: '/opt/reports/allure/',
33 disableWebdriverStepsReporting: true,
34 disableWebdriverScreenshotsReporting: false,
35 useCucumberStepReporter: true,
36 },
37 ],
38 ],
39 cucumberOpts: {
40 requireModule: ['@babel/register'],
41 backtrace: true,
42 compiler: [],
43 dryRun: false,
44 failFast: false,
45 format: ['pretty'],
46 colors: true,
47 snippets: true,
48 source: true,
49 profile: [],
50 strict: true,
51 tags: [],
52 timeout: 100000,
53 ignoreUndefinedDefinitions: false,
54 tagExpression: 'not @skip',
55 },
56 specs: ['test/features/**/*.feature'],
57 maximizeWindow: true,
58 screenshots: {
59 saveOnFail: false,
60 },
61 videos: {
62 enabled: false,
63 resolution: '1440x900',
64 startDelay: 120,
65 stopDelay: 1500,
66 },
67 assetsDir: '/home/webdriver/assets/',
68};
69config.cucumberOpts.require = ['./test/steps/**/*.steps.js'];
70exports.config = Object.assign({}, require('../hooks'), config);