From 5e73eab734cd13edda94ebbf413895100fdd713e Mon Sep 17 00:00:00 2001 From: Elvio Cavalcante Date: Fri, 14 Aug 2015 15:57:35 -0300 Subject: [PATCH] Fix test issue Unnecessary split. The url returns a string without the hash, resulting in an undefined value and making the test fails. --- docs/content/tutorial/step_06.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/tutorial/step_06.ngdoc b/docs/content/tutorial/step_06.ngdoc index 253966ebe3d5..e652e8a8e36b 100644 --- a/docs/content/tutorial/step_06.ngdoc +++ b/docs/content/tutorial/step_06.ngdoc @@ -75,7 +75,7 @@ __`test/e2e/scenarios.js`__: query.sendKeys('nexus'); element.all(by.css('.phones li a')).first().click(); browser.getLocationAbsUrl().then(function(url) { - expect(url.split('#')[1]).toBe('/phones/nexus-s'); + expect(url).toBe('/phones/nexus-s'); }); }); ...