diff --git a/test/oidc-test-provider.ts b/test/oidc-test-provider.ts index a9b1eef..402c9ab 100644 --- a/test/oidc-test-provider.ts +++ b/test/oidc-test-provider.ts @@ -183,12 +183,26 @@ async function spawnBrowser( url: string, hideLogs?: boolean // For when real credentials are used in a flow ): Promise { + 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 @@ -239,7 +253,7 @@ async function spawnBrowser( args: [ `--app=${url}`, '--disable-save-password-bubble', - '--no-sandbox', + ...chromeNoGpu, ], }, 'wdio:enforceWebDriverClassic': true,