Skip to content

Commit

Permalink
fix(@schematics/angular): use baseUrl for default e2e test
Browse files Browse the repository at this point in the history
replace usage of `'/'` for default end-to-end test by `browser.baseUrl`
to take into account any accesspath and rely on provided setting.
  • Loading branch information
loganmzz authored and Angular Builds committed Jan 30, 2019
1 parent ea1db38 commit 4f61cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -2,7 +2,7 @@ import { browser, by, element } from 'protractor';

export class AppPage {
navigateTo() {
return browser.get('/') as Promise<any>;
return browser.get(browser.baseUrl) as Promise<any>;
}

getTitleText() {
Expand Down
Expand Up @@ -9,7 +9,7 @@ import { browser, by, element } from 'protractor';

export class AppPage {
navigateTo() {
return browser.get('/');
return browser.get(browser.baseUrl);
}

getTitleText() {
Expand Down

0 comments on commit 4f61cc9

Please sign in to comment.