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

@ -8,7 +8,7 @@
import {$, browser, by, element, protractor} from 'protractor';
import {verifyNoBrowserErrors} from '../../../../test-utils';
import {verifyNoBrowserErrors} from '../../../../_common/e2e_util';
function waitForElement(selector: string) {
@ -21,9 +21,10 @@ describe('Location', () => {
afterEach(verifyNoBrowserErrors);
it('should verify paths', () => {
browser.get('/location/#/bar/baz');
browser.get('/common/location/ts/#/bar/baz');
waitForElement('hash-location');
expect(element.all(by.css('path-location code')).get(0).getText()).toEqual('/location');
expect(element.all(by.css('path-location code')).get(0).getText())
.toEqual('/common/location/ts');
expect(element.all(by.css('hash-location code')).get(0).getText()).toEqual('/bar/baz');
});
});

View File

@ -17,13 +17,14 @@ import {PathLocationComponent} from './path_location_component';
selector: 'example-app',
template: `<hash-location></hash-location><path-location></path-location>`
})
export class AppComponent {
export class ExampleAppComponent {
}
@NgModule({
declarations: [AppComponent, PathLocationComponent, HashLocationComponent],
declarations: [ExampleAppComponent, PathLocationComponent, HashLocationComponent],
providers: [{provide: APP_BASE_HREF, useValue: '/'}],
imports: [BrowserModule],
bootstrap: [ExampleAppComponent]
})
export class AppModule {
}