-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cy.go('back') broken on hash change from internal links on page #896
Comments
I also had an error prior to running into this error where there were React errors coming from the This was the test code that was busted context('Navigation', function(){
beforeEach(function(){
cy.visit('http://localhost:8080#visit')
cy.visit('http://localhost:8080#reload')
})
it('cy.go() - go back or forward in the browser\'s history', function(){
cy.location().then(function(location){
debugger
})
cy.hash().then(function(location){
debugger
})
cy.go('back')
cy.location().then(function(location){
debugger
})
cy.hash().then(function(location){
debugger
})
})
}) |
We sort of experienced this too. Except it was triggered by clicking a link that triggered It make the tests run endlessly on headless mode. |
Hey The same happens to me. This happens even if my tests are not sharing the same context. describe('TESTS', function() {
context('Test1', function() {
it('Go to URL1 and do some action', function () {
// actions
})
})
context('Test2', function() {
it('Go to URL2 and do some action and then go back to URL1', function () {
// actions
cy.click('back-arrow')
cy.url(URL1)
})
})
}) This test makes cypress to go in the infinite loop. |
Wanted to bump this issue. I was trying to go between |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior:
Using
cy.go('back')
to go back to an internal link hash makes Cypress infinitely loop between the baseUrl port and the random port.Desired behavior:
Being able to use
cy.go()
to go back to internal links.How to reproduce:
Test code:
Additional Info (images, stack traces, etc)
The text was updated successfully, but these errors were encountered: