AngularJS (1.6) app loads twice on each test start due to hash fragment changes #2005
Labels
STATE: Auto-locked
An issue has been automatically locked by the Lock bot.
SYSTEM: hammerhead
TYPE: bug
The described behavior is considered as wrong (bug).
Milestone
Are you requesting a feature or reporting a bug?
Reporting a bug
What is the current behavior?
Every time a test starts, the app loads, testcafe starts typing into an input field, then app reloads. Testcafe doesn't seem to notice the reload and continues typing into next input field without noticing that the first input field is empty due to full page reload.
This happens due to AngularJS' 1.6 way of attaching a hash fragment (
#/
) to the app url on load for in-app routing. When just the official url (https://app.treefin.com
) is used to run the tests the app is being reloaded directly after test start. When we extend the url with the hash fragment (https://app.treefin.com/#/
) and use it to run the tests no unnecessary reloads are performed.What is the expected behavior?
App shouldn't be fully reloaded just because of a hash fragment change. Browsers don't reload on fragment changes, neither should testcafe.
How would you reproduce the current behavior (if this is a bug)?
Load our page with the provided code.
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://app.treefin.com
Test code
Specify your
The text was updated successfully, but these errors were encountered: