backend/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 labels: {
37 feature: [/GIT.(\d*)/],
38 },
39 },
40 ],
41 ],
42 cucumberOpts: {
43 requireModule: ['@babel/register'],
44 backtrace: true,
45 compiler: [],
46 dryRun: false,
47 failFast: false,
48 format: ['pretty'],
49 colors: true,
50 snippets: true,
51 source: true,
52 profile: [],
53 strict: false,
54 tags: [],
55 timeout: 100000,
56 ignoreUndefinedDefinitions: false,
57 tagExpression: 'not @skip',
58 },
59 specs: ['test/features/**/*.feature'],
60 maximizeWindow: true,
61 screenshots: {
62 saveOnFail: false,
63 },
64 videos: {
65 enabled: false,
66 resolution: '1440x900',
67 startDelay: 120,
68 stopDelay: 1500,
69 },
70 assetsDir: '/home/webdriver/assets/',
71};
72config.cucumberOpts.require = ['./test/steps/**/*.steps.js'];
73exports.config = Object.assign({}, require('../hooks'), config);