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

Commit 5df80e1

Browse files
Elvio Cavalcantecaitp
Elvio Cavalcante
authored andcommitted
docs(tutorial): fix test issue
Unnecessary split. The url returns a string without the hash, resulting in an undefined value and making the test fails. Matches the phonecat app more closely, too. Closes #12590
1 parent ba9fb82 commit 5df80e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/tutorial/step_06.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ __`test/e2e/scenarios.js`__:
7575
query.sendKeys('nexus');
7676
element.all(by.css('.phones li a')).first().click();
7777
browser.getLocationAbsUrl().then(function(url) {
78-
expect(url.split('#')[1]).toBe('/phones/nexus-s');
78+
expect(url).toBe('/phones/nexus-s');
7979
});
8080
});
8181
...

0 commit comments

Comments
 (0)