@telefonica/acceptance-testing 3.0.0-beta4 → 3.0.0-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker-compose.yaml +1 -1
- package/jest-puppeteer-config.js +45 -35
- package/package.json +1 -1
package/docker-compose.yaml
CHANGED
package/jest-puppeteer-config.js
CHANGED
|
@@ -92,43 +92,53 @@ const getPuppeteerConfig = async () => {
|
|
|
92
92
|
|
|
93
93
|
/** @type import('jest-environment-puppeteer').JestPuppeteerConfig */
|
|
94
94
|
const config = {
|
|
95
|
-
|
|
96
|
-
// ...baseConnectOrLaunchConfig,
|
|
97
|
-
// // Launch chromium installed in docker in CI
|
|
98
|
-
// // ...(isCi ? {executablePath: '/usr/bin/chromium'} : {}),
|
|
99
|
-
// env: {
|
|
100
|
-
// TZ: 'UTC',
|
|
101
|
-
// LANG: 'es_ES',
|
|
102
|
-
// LANGUAGE: 'es_ES',
|
|
103
|
-
// },
|
|
104
|
-
// args: [
|
|
105
|
-
// // https://peter.sh/experiments/chromium-command-line-switches/
|
|
106
|
-
// '--no-sandbox', // probably not needed in ubuntu
|
|
107
|
-
// '--font-render-hinting=none', // this flag is important because we use it when launching dockerized chromium too
|
|
108
|
-
// '--disable-background-networking',
|
|
109
|
-
// '--disable-background-timer-throttling',
|
|
110
|
-
// '--disable-breakpad',
|
|
111
|
-
// '--disable-client-side-phishing-detection',
|
|
112
|
-
// '--disable-default-apps',
|
|
113
|
-
// '--disable-dev-shm-usage',
|
|
114
|
-
// '--disable-extensions',
|
|
115
|
-
// '--disable-features=site-per-process',
|
|
116
|
-
// '--disable-hang-monitor',
|
|
117
|
-
// '--disable-popup-blocking',
|
|
118
|
-
// '--disable-prompt-on-repost',
|
|
119
|
-
// '--disable-sync',
|
|
120
|
-
// '--disable-translate',
|
|
121
|
-
// '--disable-smooth-scrolling',
|
|
122
|
-
// ],
|
|
123
|
-
// },
|
|
124
|
-
browserContext: 'incognito',
|
|
125
|
-
browserPerWorker: false,
|
|
126
|
-
connect: {
|
|
95
|
+
launch: {
|
|
127
96
|
...baseConnectOrLaunchConfig,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
97
|
+
// Launch chromium installed in docker in CI
|
|
98
|
+
...(isCi ? {executablePath: '/usr/bin/chromium'} : {}),
|
|
99
|
+
env: {
|
|
100
|
+
...process.env,
|
|
101
|
+
TZ: 'UTC',
|
|
102
|
+
LANG: 'es_ES',
|
|
103
|
+
LANGUAGE: 'es_ES',
|
|
104
|
+
},
|
|
105
|
+
dumpio: true,
|
|
106
|
+
// args must be the same as the ones defined in web-builder Dockerfile
|
|
107
|
+
args: [
|
|
108
|
+
'--lang=es_ES',
|
|
109
|
+
'--disable-background-networking',
|
|
110
|
+
'--disable-background-timer-throttling',
|
|
111
|
+
'--disable-breakpad',
|
|
112
|
+
'--disable-client-side-phishing-detection',
|
|
113
|
+
'--disable-default-apps',
|
|
114
|
+
'--disable-dev-shm-usage',
|
|
115
|
+
'--disable-extensions',
|
|
116
|
+
'--disable-features=site-per-process',
|
|
117
|
+
'--disable-hang-monitor',
|
|
118
|
+
'--disable-popup-blocking',
|
|
119
|
+
'--disable-prompt-on-repost',
|
|
120
|
+
'--disable-sync',
|
|
121
|
+
'--disable-translate',
|
|
122
|
+
'--disable-gpu',
|
|
123
|
+
'--metrics-recording-only',
|
|
124
|
+
'--no-first-run',
|
|
125
|
+
'--safebrowsing-disable-auto-update',
|
|
126
|
+
'--enable-automation',
|
|
127
|
+
'--password-store=basic',
|
|
128
|
+
'--use-mock-keychain',
|
|
129
|
+
'--headless',
|
|
130
|
+
'--hide-scrollbars',
|
|
131
|
+
'--no-sandbox',
|
|
132
|
+
'--font-render-hinting=none',
|
|
133
|
+
'--disable-font-subpixel-positioning',
|
|
134
|
+
// '--remote-debugging-port=9222', // https://github.com/puppeteer/puppeteer/issues/8546
|
|
135
|
+
'--remote-debugging-address=0.0.0.0',
|
|
136
|
+
'--ignore-certificate-errors',
|
|
137
|
+
],
|
|
131
138
|
},
|
|
139
|
+
browserContext: 'incognito',
|
|
140
|
+
browserPerWorker: false,
|
|
141
|
+
connect,
|
|
132
142
|
server: server
|
|
133
143
|
? {
|
|
134
144
|
...defaultServerConfig,
|