We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f05035 commit 7c7477cCopy full SHA for 7c7477c
src/ng/directive/booleanAttrs.js
@@ -87,7 +87,14 @@
87
expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/);
88
89
element(by.id('link-6')).click();
90
- expect(browser.getCurrentUrl()).toMatch(/\/6$/);
+
91
+ // At this point, we navigate away from an Angular page, so we need
92
+ // to use browser.driver to get the base webdriver.
93
+ browser.wait(function() {
94
+ return browser.driver.getCurrentUrl().then(function(url) {
95
+ return url.match(/\/6$/);
96
+ });
97
+ }, 1000, 'page should navigate to /6');
98
});
99
</file>
100
</example>
0 commit comments