Skip to content

Commit a88909b

Browse files
loganmzzAngular Builds
authored andcommitted
fix(@schematics/angular): use baseUrl for default e2e test
replace usage of `'/'` for default end-to-end test by `browser.baseUrl` to take into account any accesspath and rely on provided setting.
1 parent e719310 commit a88909b

File tree

2 files changed

+2
-2
lines changed
  • packages/schematics/angular/e2e/files/src
  • tests/angular_devkit/build_angular/hello-world-app/e2e

2 files changed

+2
-2
lines changed

packages/schematics/angular/e2e/files/src/app.po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { browser, by, element } from 'protractor';
22

33
export class AppPage {
44
navigateTo() {
5-
return browser.get('/') as Promise<any>;
5+
return browser.get(browser.baseUrl) as Promise<any>;
66
}
77

88
getTitleText() {

tests/angular_devkit/build_angular/hello-world-app/e2e/app.po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { browser, by, element } from 'protractor';
99

1010
export class AppPage {
1111
navigateTo() {
12-
return browser.get('/');
12+
return browser.get(browser.baseUrl);
1313
}
1414

1515
getTitleText() {

0 commit comments

Comments
 (0)