feat: Switch browsers to headless
parent
f5124d11cf
commit
aa28f61604
|
@ -54,7 +54,20 @@ export default class PlatformBrowser implements Platform {
|
||||||
const client = await WebDriver.newSession({
|
const client = await WebDriver.newSession({
|
||||||
logLevel: 'warn',
|
logLevel: 'warn',
|
||||||
port,
|
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`);
|
await client.navigateTo(`${ctx.fixturesURL}/index.html`);
|
||||||
|
|
Loading…
Reference in New Issue