You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
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");});});Thefirsttestalwayspasses...Thesecondonesometimesfailed(veryoften)...
The text was updated successfully, but these errors were encountered:
Hmm, this seems like a bug with how we handle hash navigation.
src/scenario/Application.js:86 doesn't wait for onload, assuming that assigning the hash to a frame causes the window below it to navigate immediately, which is likely wrong. It should probably use frame.load(...) to call the execute action, and then set the src.
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)
The text was updated successfully, but these errors were encountered: