Skip to content

Commit 318e6ce

Browse files
alopezsanchezgkalpak
authored andcommitted
test(e2e): replace the deprecated browser.getLocationAbsUrl() with browser.getCurrentUrl()
According to angular/protractor#3969, `browser.getLocationAbsUrl()` is now deprecated and `browser.getCurrentUrl()` should be used instead. Closes angular#16053
1 parent 4f2b2b6 commit 318e6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/tests/base-tag.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('SCE URL policy when base tags are present', function() {
77

88

99
it('allows the page URL (location.href)', function() {
10-
expectToBeTrusted(browser.getLocationAbsUrl(), true);
10+
expectToBeTrusted(browser.getCurrentUrl(), true);
1111
});
1212

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

0 commit comments

Comments
 (0)