Files
angular/aio/tools/examples/shared/boilerplate/cli/e2e/protractor-bazel.conf.js
Paul Gschwendtner adb337c179 build: ensure chromium is not using sandbox within Bazel sandbox for AIO example e2e tests (#49293)
Chromium is launched via Karma from within the Bazel AIO example e2e
tests. This breaks depending on the platform and sandbox mechanism used.

We should never use Chromium's sandbox on top of Bazel's sandbox
invocation. The Angular CLI exposes a browser exactly for this use-case.

PR Close #49293
2023-03-03 19:41:35 +00:00

25 lines
876 B
JavaScript

// @ts-check
// A protractor config to use to run the tests using the bazel-provided Chrome version.
// This is useful to ensure deterministic runs on CI and locally. This file is ignored when creating
// StackBlitz examples and ZIP archives for each example.
const {config} = require('./protractor.conf.js');
exports.config = {
...config,
chromeDriver: process.env.CHROMEDRIVER_BIN,
capabilities: {
...config.capabilities,
chromeOptions: {
...config.capabilities.chromeOptions,
binary: process.env.CHROME_BIN,
// See /integration/README.md#browser-tests for more info on these args.
// Bazel tests run within a sandbox already and Chrome cannot have its own sandbox too.
args: [
'--no-sandbox', '--headless', '--disable-gpu', '--disable-dev-shm-usage',
'--hide-scrollbars', '--mute-audio'
],
},
},
};