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

Description
In scenario tests, if you navigate more than once, sometimes it doesn't change the browser's url (maybe because it's done asynchronously, so sometimes it's too delayed)
describe('test', function() {
it('should navigate the browser - once', function() {
browser().navigateTo('../../app/index.html#/phones/nexus-s');
expect(browser().location().hash()).toBe("/phones/nexus-s");
});
it('should navigate the browser - once', function() {
browser().navigateTo('../../app/index.html');
browser().navigateTo('#/phones/nexus-s');
expect(browser().location().hash()).toBe("/phones/nexus-s");
});
});
The first test always passes...
The second one sometimes failed (very often)...