mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: reorganize e2e test files (#5032)
* Renames the e2e test file to match the pattern of `{{component}}-e2e.spec.ts`.
* Flattens the directory structure in the `e2e` directory. Having a separate dir for each component was overkill since only have one file per component.
* Fixes some inconsistent code styles in the Protractor config.
Fixes #5030.
This commit is contained in:
committed by
Andrew Seguin
parent
21f764c347
commit
8e6bee8116
@@ -10,7 +10,7 @@ require('ts-node').register({
|
||||
const E2E_BASE_URL = process.env['E2E_BASE_URL'] || 'http://localhost:4200';
|
||||
const config = {
|
||||
useAllAngular2AppRoots: true,
|
||||
specs: [ path.join(__dirname, '../e2e/**/*.e2e.ts') ],
|
||||
specs: [ path.join(__dirname, '../e2e/**/*.spec.ts') ],
|
||||
baseUrl: E2E_BASE_URL,
|
||||
allScriptsTimeout: 120000,
|
||||
getPageTimeout: 120000,
|
||||
@@ -42,14 +42,14 @@ if (process.env['TRAVIS']) {
|
||||
config.capabilities = {
|
||||
'browserName': 'chrome',
|
||||
'version': 'latest',
|
||||
"chromedriverVersion": "2.28",
|
||||
'chromedriverVersion': '2.28',
|
||||
'tunnel-identifier': process.env['TRAVIS_JOB_ID'],
|
||||
'build': process.env['TRAVIS_JOB_ID'],
|
||||
'name': 'Material E2E Tests',
|
||||
|
||||
// Enables concurrent testing in the Webdriver. Currently runs five e2e files in parallel.
|
||||
maxInstances: 5,
|
||||
shardTestFiles: true,
|
||||
'maxInstances': 5,
|
||||
'shardTestFiles': true,
|
||||
|
||||
// By default Saucelabs tries to record the whole e2e run. This can slow down the builds.
|
||||
'recordVideo': false,
|
||||
|
||||
Reference in New Issue
Block a user