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 createDomain then visiting primary domain #19857

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

[Multi-domain]: Handle createDomain then visiting primary domain #19857

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

Comments

@mjhenkes
Copy link
Member

mjhenkes commented Jan 24, 2022

What would you like?

Cypress should be able to create a domain then subsequently, visit a primary domain.

Why is this needed?

This is a prime workflow needed for login:

it('logs in before the main test' , () => {
  cy.createDomainContext('identityprovider.com', () => {
    cy.visit('identityprovider.com') //go to app you want to test
     // login
    cy.get('a[data-cy="multi-domain-secondary-link"]').click() // click the app you want to go to
  })
  cy.visit('myApp.com') //go to app you want to test
   
  // do test stuff here
   
})

Other

@tbiethman tbiethman added the topic: cy.origin Problems or enhancements related to cy.origin command label Jan 26, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review stage: pending release and removed stage: backlog stage: needs review The PR code is done & tested, needs review labels Mar 3, 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