Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions test/oidc-test-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,26 @@ async function spawnBrowser(
url: string,
hideLogs?: boolean // For when real credentials are used in a flow
): Promise<Browser> {
const chromeNoGpu = [
'--disable-gpu-sandbox',
'--disable-gpu',
'--disable-software-rasterizer',
'--disable-gpu-compositing',
'--disable-gpu-rasterization',
'--disable-accelerated-video-decode',
'--no-sandbox',
];
const options = {
capabilities: { browserName: 'chrome' },
capabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
args: chromeNoGpu,
},
},
waitforTimeout: 10_000,
waitforInterval: 100,
logLevel: hideLogs ? 'error' : 'info',
} as const;
logLevel: hideLogs ? ('error' as const) : ('info' as const),
};

// We set ELECTRON_RUN_AS_NODE=1 for tests so that we can use
// process.execPath to run scripts. Here, we want the actual, regular
Expand Down Expand Up @@ -239,7 +253,7 @@ async function spawnBrowser(
args: [
`--app=${url}`,
'--disable-save-password-bubble',
'--no-sandbox',
...chromeNoGpu,
],
},
'wdio:enforceWebDriverClassic': true,
Expand Down
Loading