The information about testing Angular includes an example configuration (of Karma and Protractor) in which it disables the sandbox of the Chrome browser:
browsers: ['Chrome'],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
and
const config = require('./protractor.conf').config;
config.capabilities = {
browserName: 'chrome',
chromeOptions: {
args: ['--headless', '--no-sandbox']
}
};
exports.config = config;
But why? Why not leave the sandbox enabled? Is there a good reason to do that? Is it necessary for tests to run properly?