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 was archived by the owner on Jul 29, 2024. It is now read-only.
If I have an Angular page that I am navigating from, the browser.get() call does not wait for the original page to settle. This makes use cases like this fragile:
Open login page
Fill in login details
Click on the login button
Open an application page
Do something as a logged in user
This results in a race condition between the click on step 3) and the page load on step 4), resulting in a flickering test.
The login is substituted with a simple $timeout, but in a real app this would be a $http call that the $httpBackend intercepts and returns a canned response. Thus it's length is undetermined, if you play around with the exact timings (https://github.com/sashee/protractor-problem-example/blob/master/login-controller.js#L8) you can easily find a value when the spec passes, and one when fails (try with 2ms and 500ms)