Skip to content

Commit

Permalink
Update Chrome and disable sandbox explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-snake committed Feb 14, 2025
1 parent 789aa56 commit a68981c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 9 additions & 2 deletions demos/using-dev-build/wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ export const config: WebdriverIO.Config = {
capabilities: [
{
browserName: "chrome",
browserVersion: "122.0.6261.111", // More information about available versions can be found here: https://github.com/GoogleChromeLabs/chrome-for-testing
browserVersion: "133.0.6943.53", // More information about available versions can be found here: https://github.com/GoogleChromeLabs/chrome-for-testing
"goog:chromeOptions": {
args: ["headless", "disable-gpu", "disable-dev-shm-usage"],
args: [
"headless",
"disable-gpu",
"disable-dev-shm-usage",
// Required for CI runners using >=Ubuntu 24.04
// @see https://github.com/SeleniumHQ/selenium/issues/14609
"--no-sandbox",
],
},
acceptInsecureCerts: true,
},
Expand Down
5 changes: 4 additions & 1 deletion src/frontend/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,17 @@ async function withChrome<T>(
"font-render-hinting=none",
"hide-scrollbars",
"disable-dev-shm-usage", // disable /dev/shm usage because chrome is prone to crashing otherwise
// Required for CI runners using >=Ubuntu 24.04
// @see https://github.com/SeleniumHQ/selenium/issues/14609
"--no-sandbox",
],
mobileEmulation,
};

const browser = await remote({
capabilities: {
browserName: "chrome",
browserVersion: "122.0.6261.111", // More information about available versions can be found here: https://github.com/GoogleChromeLabs/chrome-for-testing
browserVersion: "133.0.6943.53", // More information about available versions can be found here: https://github.com/GoogleChromeLabs/chrome-for-testing
"goog:chromeOptions": chromeOptions,
},
});
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/src/test-e2e/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export async function runInBrowser(
"--host-resolver-rules=MAP * localhost:5173",
...(nonNullish(userAgent) ? [`--user-agent=${userAgent}`] : []),
...extraChromeOptions,
// Required for CI runners using >=Ubuntu 24.04
// @see https://github.com/SeleniumHQ/selenium/issues/14609
"--no-sandbox",
],

// Disables permission prompt for clipboard, needed for tests using the clipboard (without this,
Expand Down

0 comments on commit a68981c

Please sign in to comment.