Closed dgrebb closed 9 months ago
As documented in the README, setting engineOptions.headless = "new" is passed to Playwright as expected, but fails.
engineOptions.headless = "new"
backstopjs@6.3.2
Creating Browser No Playwright browser specified, assuming Chromium. COMMAND | Command "test" ended with an error after [0.003s] COMMAND | browserType.launch: headless: expected boolean, got string
Playwright supports "new" headless mode, set as a string, but only by defining ignoredDefaultArgs: ["--headless"].
"new"
ignoredDefaultArgs: ["--headless"]
This isn't well documented, but one can see Playwright's headless argument expects a boolean.
headless
Deeply burred in a GitHub issue, there is a small example of how to make "new" headless mode work:
projects: [ { name: 'chromium', use: { launchOptions: { ignoreDefaultArgs: ['--headless'], args: ['--headless=new'] } }, },
(#1525) (dgrebb/backstopjs#73)
Found and fixing 👍
Closed with #1535
Summary
As documented in the README, setting
engineOptions.headless = "new"
is passed to Playwright as expected, but fails.backstopjs@6.3.2
Details
Playwright supports
"new"
headless mode, set as a string, but only by definingignoredDefaultArgs: ["--headless"]
.This isn't well documented, but one can see Playwright's
headless
argument expects a boolean.Deeply burred in a GitHub issue, there is a small example of how to make
"new"
headless mode work:(#1525) (dgrebb/backstopjs#73)