1
0
Fork 0

feat: Switch browsers to headless

pull/1/head
Ambrose Chua 2021-09-10 01:05:18 +08:00
parent f5124d11cf
commit aa28f61604
1 changed files with 14 additions and 1 deletions

View File

@ -54,7 +54,20 @@ export default class PlatformBrowser implements Platform {
const client = await WebDriver.newSession({
logLevel: 'warn',
port,
capabilities: {browserName: this.name},
capabilities: {
browserName: this.name,
'goog:chromeOptions': {
args: [
'--disable-infobars',
'--headless',
'--disable-gpu',
'--window-size=1440,735',
],
},
'moz:firefoxOptions': {
args: ['-headless'],
},
},
});
await client.navigateTo(`${ctx.fixturesURL}/index.html`);