Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test(e2e): replace the deprecated browser.getLocationAbsUrl() with …
Browse files Browse the repository at this point in the history
…`browser.getCurrentUrl()`

According to angular/protractor#3969, `browser.getLocationAbsUrl()` is
now deprecated and `browser.getCurrentUrl()` should be used instead.

Closes #16053
  • Loading branch information
alopezsanchez authored and gkalpak committed Nov 15, 2018
1 parent f4ac5c8 commit bc34323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/tests/base-tag.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('SCE URL policy when base tags are present', function() {


it('allows the page URL (location.href)', function() {
expectToBeTrusted(browser.getLocationAbsUrl(), true);
expectToBeTrusted(browser.getCurrentUrl(), true);
});

it('blocks off-origin URLs', function() {
Expand Down

0 comments on commit bc34323

Please sign in to comment.