question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with location.back()

See original GitHub issue

Hello, 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:closed
  • Created 2 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
meirkacommented, Feb 10, 2022

@timdeschryver Yeah, tests are good now. Give me few days, let me try to workout tests

0reactions
github-actions[bot]commented, Feb 25, 2022

🎉 This issue has been resolved in version 11.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found