Merge pull request #823 from birkskyum/new-webdriver

Chrome new headless
This commit is contained in:
Birk Skyum
2023-10-22 20:20:26 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
FROM node:10 as builder
FROM node:16 as builder
WORKDIR /maputnik
# Only copy package.json to prevent npm install from running on every build

View File

@@ -11,6 +11,7 @@ var SCREENSHOT_PATH = artifacts.pathSync("screenshots");
exports.config = {
runner: 'local',
path: '/wd/hub',
specs: [
'./test/functional/index.js'
],
@@ -19,6 +20,9 @@ exports.config = {
{
maxInstances: 5,
browserName: (process.env.BROWSER || 'chrome'),
'goog:chromeOptions': {
args: ['headless=new']
}
}
],
// geckodriver-0.31 seems to have problems as of 2022 May 1