Skip to content
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

Cypress is not allowing different tab switch in same test. #19928

Closed
ganeshac123 opened this issue Jan 27, 2022 · 1 comment
Closed

Cypress is not allowing different tab switch in same test. #19928

ganeshac123 opened this issue Jan 27, 2022 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@ganeshac123
Copy link

Current behavior

When user is trying to switch different url in the same test, cypress is throwing cookies issue.

Desired behavior

When user is trying to switch different url in the same test, cypress should all user to switch.

Test code to reproduce

it('cy.get() - Login to Suki as a Physician', function () {
Cypress.config('chromeWebSecurity',false)
cy.login(USER_PERSONA.EPICUSER)222
//Adding new problem
.wait(2000)
.xpath('(//button[@type="button"])[2]').click()
.wait(6000)
.restoreLocalStorage()
.get('.txtUserID').type('SUKIAIRR ')
.get('.txtPassword').type('4kx*nEgmVBzBuPGXS?eJ')
.get('.btnLogin').click()

Cypress Version

8.3.1

Other

No response

@ganeshac123 ganeshac123 changed the title Cypress is not allowing browser url switch Cypress is not allowing different tab switch in same test. Jan 31, 2022
@flotwig
Copy link
Contributor

flotwig commented Jan 31, 2022

Hi @ganeshac123 this is a known limitation in Cypress, you can follow the work on removing this limitation here: #17336

If your use case is applying login credentials before each test, you may find experimentalSessionSupport useful: https://docs.cypress.io/api/commands/session

Closing since it is a duplicate of #17336.

@flotwig flotwig closed this as completed Jan 31, 2022
@flotwig flotwig added the type: duplicate This issue or pull request already exists label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants