Revert "build: switch example e2e tests to bazel (#28402)" (#28438)

This reverts commit ef78e33560.

PR Close #28438
This commit is contained in:
Jason Aden
2019-01-29 15:39:00 -08:00
parent cbed4851a3
commit ea2a3f8335
103 changed files with 415 additions and 897 deletions

View File

@ -7,19 +7,13 @@
*/
import {browser, by, element} from 'protractor';
import {verifyNoBrowserErrors} from '../../../../../test-utils';
// Declare the global "window" and "document" constant since we don't want to add the "dom"
// TypeScript lib for the e2e specs that execute code in the browser and reference such
// global constants.
declare const window: any;
declare const document: any;
import {verifyNoBrowserErrors} from '../../../../../_common/e2e_util';
describe('testability example', () => {
afterEach(verifyNoBrowserErrors);
describe('using task tracking', () => {
const URL = '/testability/whenStable/';
const URL = '/core/testability/ts/whenStable/';
it('times out with a list of tasks', done => {
browser.get(URL);
@ -28,7 +22,7 @@ describe('testability example', () => {
// Script that runs in the browser and calls whenStable with a timeout.
let waitWithResultScript = function(done: any) {
let rootEl = document.querySelector('example-app');
let testability = window.getAngularTestability(rootEl);
let testability = (window as any).getAngularTestability(rootEl);
testability.whenStable((didWork: boolean, tasks: any) => { done(tasks); }, 1000);
};

View File

@ -5,4 +5,4 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export {AppModule, StableTestCmp as AppComponent} from './testability_example';
export {AppModule} from './testability_example';