Mock The Location Href Property (opens in new tab)
Let's say the application changes the URL using the assignment: 1location.href = 'https://acme.com' Can we prevent the URL change? For example, we might want to limit our test to the cu
Read the original article