diff --git a/demos/using-dev-build/wdio.conf.ts b/demos/using-dev-build/wdio.conf.ts index 8979a450c4..41fcae45b7 100644 --- a/demos/using-dev-build/wdio.conf.ts +++ b/demos/using-dev-build/wdio.conf.ts @@ -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, }, diff --git a/src/frontend/screenshots.ts b/src/frontend/screenshots.ts index 7b082dd3ce..347ac45cad 100755 --- a/src/frontend/screenshots.ts +++ b/src/frontend/screenshots.ts @@ -97,6 +97,9 @@ async function withChrome( "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, }; @@ -104,7 +107,7 @@ async function withChrome( 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, }, }); diff --git a/src/frontend/src/test-e2e/util.ts b/src/frontend/src/test-e2e/util.ts index a6f0b28767..d796a1b94c 100644 --- a/src/frontend/src/test-e2e/util.ts +++ b/src/frontend/src/test-e2e/util.ts @@ -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,