Files
angular__angular/e2e/protractor.conf.js
T
Paul Gschwendtner 326f8bb32f build: run e2e tests with bazel (#14656)
* Builds the e2e app with Bazel
* Serves the e2e app with Bazel
* Runs the e2e tests with Bazel protractor rules
2019-01-11 14:43:04 -08:00

29 lines
888 B
JavaScript

exports.config = {
useAllAngular2AppRoots: true,
allScriptsTimeout: 120000,
getPageTimeout: 120000,
jasmineNodeOpts: {
defaultTimeoutInterval: 120000,
},
plugins: [
{
// Runs the axe-core accessibility checks each time the e2e page changes and
// Angular is ready.
path: require.resolve('angular_material/tools/axe-protractor'),
rules: [
// Exclude mat-menu elements because those are empty if not active.
{id: 'aria-required-children', selector: '*:not(mat-menu)'},
// Disable color contrast checks since the final colors will vary based on the theme.
{id: 'color-contrast', enabled: false},
]
}
],
// Since we want to use async/await we don't want to mix up with selenium's promise
// manager. In order to enforce this, we disable the promise manager.
SELENIUM_PROMISE_MANAGER: false,
};