Bug with location.back()
See original GitHub issueHello, I believe I found a bug, where angular testing library doesn’t seem to handle location.back()
scenario.
I have prepared simple project with very basic navigation, specs with TestBed and with Angular Testing Library. In case of TestBed navigation works correctly, but with Angular Testing Library it does not.
https://github.com/meirka/angular-unit-test-navigation
I have similar test in my side project and i’m experiencing the same issue.
Please advise.
Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
Angular: Location back history - typescript - Stack Overflow
The problem with it is that some browsers (e.g. chrome) store initial page in the history, so window.history.length > 1 and you will...
Read more >How to fix Maps when it crashes - Android - Google Maps Help
If the Google Maps app on your phone or tablet crashes or has other issues that affect your experience on Maps, try the...
Read more >React, Iframes, and a Back-Navigation Bug
In this post, we'll fix a bug where iframes in React interfere with your browser's back-navigation. Skip table of contents. Table of Contents....
Read more >How to Navigate to Previous Page in Angular | Nils Mehlhorn
Here's how you implement a back button to navigate to the previous page in Angular. We'll explore static and dynamic routing approaches in...
Read more >$location - AngularJS: API
Return path of current URL when called without any parameter. Change path when called with parameter and return $location . Note: Path should...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@timdeschryver Yeah, tests are good now. Give me few days, let me try to workout tests
🎉 This issue has been resolved in version 11.0.3 🎉
The release is available on:
Your semantic-release bot 📦🚀