mirror of
https://github.com/angular/angular.git
synced 2026-12-06 13:19:15 -05:00
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
25 lines
876 B
JavaScript
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'
|
|
],
|
|
},
|
|
},
|
|
};
|