-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
AUT navigates to Cypress runner upon page navigation. #7545
Comments
I can't recreate the issue as described. I don't see the uncaught errors or the AUT window traversing into Cypress as shown in the first screenshot. Please make sure to include all code required. It looks like you have some Regardless this looks similar to the issue we have a potential fix available for starting in {
"experimentalSourceRewriting": true
} |
@jennifer-shehane I think it's because you ran both tests. There's no Nevertheless, I tried Just make sure to it.only() the |
Ok, I missed the part about the repro requiring you change the Yah, I see the Reprodescribe('tests', () => {
it('test 1', () => {
cy.request('POST', 'https://qa1-cypress.st.dev/Auth/Login', { username: 'cydemoadmin', password: 'Test1@#$%' })
cy.visit('https://qa1-cypress.st.dev/#/Settings/business-units/Add')
cy.get('[type=submit]', {timeout: 15000}).should('be.visible')
cy.get('[name=Name]').type('test43824')
cy.get('[name=OfficialName]').type('test43824')
cy.get('[name=Email]').type('asdf2sdfsdf@ggmaill.com')
cy.get('[name=PhoneNumber]').type('8185556767')
cy.get('[type=submit]').click()
})
it('test 2', () => {
cy.request('POST', 'https://qa1-cypress.st.dev/Auth/Login', { username: 'cydemoadmin', password: 'Test1@#$%' })
cy.visit('https://qa1-cypress.st.dev/#/Settings/business-units/Add')
cy.get('[type=submit]', { timeout: 15000 }).should('be.visible')
cy.get('[name=Name]').type('test43825') //Changed value
cy.get('[name=OfficialName]').type('test43825') //Changed value
cy.get('[name=Email]').type('asdf2sdfsdf@ggmaill.com')
cy.get('[name=PhoneNumber]').type('8185556767')
cy.get('[type=submit]').click()
})
}) |
This is no longer reproducible from the given repro. Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen. |
Use Cypress version 4.5.0 to reproduce. Later versions are currently blocked by(#7518)
This simple tests consists of:
Upon submission of the form, a page redirect happens and a series of uncaught errors fire. However, when the form is cancelled, the page redirect still happens, but without the errors.
Here's the code for both scenarios. The one where the error happens by submitting the form, and the one where everything is ok when canceling the form
Here's the stack trace
There seems to be a weird URL mutation happening for the scenario where the exceptions happen
The text was updated successfully, but these errors were encountered: