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

[Multi-domain]: Handle the first visit witin switchToDomain #19876

Closed
mjhenkes opened this issue Jan 25, 2022 · 2 comments
Closed

[Multi-domain]: Handle the first visit witin switchToDomain #19876

mjhenkes opened this issue Jan 25, 2022 · 2 comments
Assignees
Labels
topic: cy.origin Problems or enhancements related to cy.origin command

Comments

@mjhenkes
Copy link
Member

mjhenkes commented Jan 25, 2022

What would you like?

As a part of the effort to combine create domain and switch to domain we would like to be able to call visit within switchToDomain

it('manually visit after switchToDomain', () => {
  cy.switchToDomain('idp.com', () => { 
    cy.visit('idp.com/login')
  })
})

Why is this needed?

This is an expected workflow.

Other

@tbiethman tbiethman added the topic: cy.origin Problems or enhancements related to cy.origin command label Jan 26, 2022
@mjhenkes mjhenkes assigned mschile and unassigned mschile Mar 1, 2022
@mjhenkes mjhenkes changed the title [Multi-domain]: Handle visit after switchToDomain [Multi-domain]: Handle the first visit witin switchToDomain Mar 1, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 8, 2022

The code for this is done in cypress-io/cypress#20467, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@mschile mschile closed this as completed Mar 8, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 25, 2022

Released in 9.6.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v9.6.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: cy.origin Problems or enhancements related to cy.origin command
Projects
None yet
Development

No branches or pull requests

3 participants