Skip to content

Commit d0d62e6

Browse files
authored
Add a karma.config.d/config.js to the jsNoExecutableTests test (#5625)
## Problem `testJsNoExecutableTests` fails in CI when the build runs as root: ``` Cannot start ChromeHeadless Running as root without --no-sandbox is not supported. ``` This is the only integration test in `gradle-plugins` that actually launches a browser (it's the only one invoking `jsBrowserTest` with a real Compose UI test). All other test projects declaring `js { browser() }` are driven through compile/packaging tasks only and never start Chrome, so they're unaffected. Other browser test suites in the repo (`html/`, `components/resources/`) already ship their own `--no-sandbox` karma patch — this test project was the only browser-launching one without one. ## Fix Add a `karma.config.d/config.js` to the `jsNoExecutableTests` test project that runs ChromeHeadless with `--no-sandbox`. ## Release Notes N/A
1 parent 4392bab commit d0d62e6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • gradle-plugins/compose/src/test/test-projects/misc/jsNoExecutableTests/karma.config.d
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config.set({
2+
browsers: ["ChromeHeadless_ComposeCI"],
3+
customLaunchers: {
4+
ChromeHeadless_ComposeCI: {
5+
base: "ChromeHeadless",
6+
flags: ["--no-sandbox"]
7+
}
8+
}
9+
});

0 commit comments

Comments
 (0)