flow
flow copied to clipboard
UI remains "active" if there is a failure during navigation
Description of the bug
See the test PopStateHandlerIT.testEmptyHash_quadrupleBack
. The test is broken as it assumes the history contains a "href"
value which it does not when you perform the last step of the test which is navigate back to a url without a fragment. As this happens, the test itself succeeds as it only validates the value of a component in the view and not that the browser does not log any errors. Validating the value of the component also takes around half a minute as it waits for a TestBench timeout, because the window.Vaadin.Flow.clients.TypeScript
fake client is marked as active
Expected behavior
Failure in navigation is handled gracefully and the loading state is reset
Minimal reproducible example
PopStateHandlerIT.testEmptyHash_quadrupleBack
Versions
- Vaadin / Flow version: 24.4