Skip to content

Commit 2ff0512

Browse files
committed
docs(tutorial): replace browser.getLocationAbsUrl() with browser.getCurrentUrl()
According to angular/protractor#3969, browser.getLocationAbsUrl() is now deprecated and it recommends using browser.getCurrentUrl instead
1 parent 77be5c5 commit 2ff0512

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content/tutorial/step_08.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ HTTP request to an invalid location.
8383
query.sendKeys('nexus');
8484

8585
element.all(by.css('.phones li a')).first().click();
86-
expect(browser.getLocationAbsUrl()).toBe('/phones/nexus-s');
86+
expect(browser.getCurrentUrl()).toBe('/phones/nexus-s');
8787
});
8888

8989
...

docs/content/tutorial/step_09.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ various URLs and verifying that the correct view was rendered.
363363

364364
it('should redirect `index.html` to `index.html#!/phones', function() {
365365
browser.get('index.html');
366-
expect(browser.getLocationAbsUrl()).toBe('/phones');
366+
expect(browser.getCurrentUrl()).toBe('/phones');
367367
});
368368

369369
...

0 commit comments

Comments
 (0)