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

Cross-origin Testing #17336

Closed
jennifer-shehane opened this issue Jul 14, 2021 · 28 comments · Fixed by #18075
Closed

Cross-origin Testing #17336

jennifer-shehane opened this issue Jul 14, 2021 · 28 comments · Fixed by #18075
Assignees
Labels
E2E Issue related to end-to-end testing Epic Requires breaking up into smaller issues topic: auth type: feature New feature that does not currently exist v12.0.0 🐛

Comments

@jennifer-shehane jennifer-shehane added the Epic Requires breaking up into smaller issues label Jul 14, 2021
@jennifer-shehane jennifer-shehane changed the title Multidomain Support: Used for tracking Multidomain Support Jul 14, 2021
@Amrita19900406
Copy link

Is there any update on this?

@narayananpalani
Copy link

Any update on this since this is a most awaited feature to have in cypressIO?

@jennifer-shehane
Copy link
Member Author

The work for this is in progress. There's a lot of work required and you can track all work in this branch: https://github.com/cypress-io/cypress/tree/feature-multidomain?rgh-link-date=2021-07-14T18%3A40%3A41Z

@anthonyp
Copy link

anthonyp commented Aug 3, 2021

Really need this for testing a Firebase Auth flow. 😁 Hoping we see a release soon.

@MaxVolobuev
Copy link

waiting for supporting several domains!

@AndreyYevtukhov
Copy link

AndreyYevtukhov commented Oct 13, 2021

Do you have some estimation, when this feature is going to be delivered?


The code is a complete mess without it and everyone who uses Auth0 of similar services has constant issues with it.


https://github.com/cypress-io/cypress/commits/feature-multidomain -> it seems like there is not much progress so far, only fixes and merges...

@JamboBuenna
Copy link

The amount of AaaS providers that are recommending people move to additional tools instead of Cypress due to this are growing fast.

@dmitry
Copy link

dmitry commented Oct 19, 2021

The amount of AaaS providers that are recommending people move to additional tools instead of Cypress due to this are growing fast.

What is AaaS?

@GaxZE
Copy link

GaxZE commented Oct 19, 2021

Going to guess, Automation as a Service?

@AlexDaniel
Copy link

Question! Is there any way we can already start using it partially? For example, there's a ticket “Remove need for hard-coded domain”, but actually I'd be happy to configure a list of hard-coded domains that I use, there's no need for cypress to detect anything automatically for my use case. So basically, if something is already working partially, is it possible to start using it? And if not, any chance to have a half-baked solution that works?

@MariyaQA
Copy link

Still waiting and hoping of multidomain support =^_^=

@jennifer-shehane
Copy link
Member Author

This work is still in progress. We have an extremely basic working example that will not currently work in the majority of cases because there's still a lot of work to be done.

Regarding the "Remove need for hard-coded domain" - the branch was made to work for an exact hard-coded 127.0.0.1 domain to switch to another domain, so this does not mean that any domain could be hard coded to work.

Anyone is welcome to pull down the branch and work with it. This is open source, but I doubt there will be much value in it in its current state.

This is our highest priority work alongside WebKit support, so it is a core focus of ours. We hope to parallelize the work soon as we make progress on some core work necessary to unblock that.

@bmuenzenmeyer
Copy link

What is AaaS?

Authorization as a Service fits the context here better in my opinion - Auth0, Okta, etc

@modern-sapien
Copy link

Do you have some estimation, when this feature is going to be delivered?

The code is a complete mess without it and everyone who uses Auth0 of similar services has constant issues with it.

@AndreyYevtukhov are you currently using the Cypress Auth0 authorization patterns for navigating this? Can you share more about your experience?

Guide: Auth0 Authentication

@GaxZE
Copy link

GaxZE commented Dec 1, 2021

Any tips for approach for doing tests for something like a content management system. Create and publish a page on one url and then view the end result on another?

@AndreyYevtukhov
Copy link

Do you have some estimation, when this feature is going to be delivered?
The code is a complete mess without it and everyone who uses Auth0 of similar services has constant issues with it.

@AndreyYevtukhov are you currently using the Cypress Auth0 authorization patterns for navigating this? Can you share more about your experience?

Guide: Auth0 Authentication

Auth0 does not have an API to authenticate users from organizations... (https://auth0.com/docs/organizations)

That's why we have to authenticate test-users using redirects, UI, requests interception, saving tokens in the files, and reading them before tests... Probably it is not a Cypress issue itself, functionality is missed (or closed) in API from the Auth0 side.

Still, it is not possible to open 2 different domains in 1 test (because it is not supported by Cypress) which would make this "flow" much easier and faster...

@seidhkona
Copy link

Is there any update on this issue?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 25, 2022

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

@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
@mjhenkes mjhenkes reopened this Apr 26, 2022
@mjhenkes
Copy link
Member

We will close this epic once the feature is generally available.

@mjhenkes mjhenkes changed the title Multi-domain Support cy.origin GA release May 6, 2022
@mjhenkes mjhenkes changed the title cy.origin GA release Cross-origin Testing Aug 9, 2022
@mjhenkes mjhenkes self-assigned this Aug 29, 2022
@mjhenkes mjhenkes modified the milestones: experimentalSessionAndOrigin GA, 11.0 Release Oct 5, 2022
@mjhenkes mjhenkes added v4.11.0 🐛 Issue present since 4.11.0 v12.0.0 🐛 and removed v4.11.0 🐛 Issue present since 4.11.0 labels Oct 5, 2022
@nagash77 nagash77 added E2E Issue related to end-to-end testing topic: auth and removed E2E-auth labels Nov 8, 2022
@emilyrohrbough
Copy link
Member

The Session and Origin Experiment is be generally available in Cypress 12. Closing as complete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E2E Issue related to end-to-end testing Epic Requires breaking up into smaller issues topic: auth type: feature New feature that does not currently exist v12.0.0 🐛
Projects
Status: Generally Available
Development

Successfully merging a pull request may close this issue.