@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.
@@ -1,5 +1,5 @@
1
1
  services:
2
2
  acceptance-tests-chromium:
3
- image: telefonica/web-builder:chromium124.0.6367-node20.13-1.0.3
3
+ image: telefonica/web-builder:chromium124.0.6367-node20.13-1.0.4
4
4
  ports:
5
5
  - '9223:9222'
@@ -92,43 +92,53 @@ const getPuppeteerConfig = async () => {
92
92
 
93
93
  /** @type import('jest-environment-puppeteer').JestPuppeteerConfig */
94
94
  const config = {
95
- // launch: {
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
- browserURL: 'http://localhost:9222',
129
- // browserWSEndpoint: (await fetch(`${'http://localhost:9223'}/json/version`).then((r) => r.json()))
130
- // .webSocketDebuggerUrl,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/acceptance-testing",
3
- "version": "3.0.0-beta4",
3
+ "version": "3.0.0-beta6",
4
4
  "author": "Telefonica",
5
5
  "license": "UNLICENSED",
6
6
  "module": "dist/acceptance-testing.esm.js",