Commit d0d62e6
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/A1 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 number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments