cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Cross-origin Testing

Open jennifer-shehane opened this issue 4 years ago • 27 comments
trafficstars

This issue is used for tracking work required to provide 'multidomain' support, closing https://github.com/cypress-io/cypress/issues/944

Work being done in https://github.com/cypress-io/cypress/tree/feature-multidomain branch currently.

Some issues covering this work below, but any issue prefixed with "Mult-domain" needs to be delivered.

  • https://github.com/cypress-io/cypress/issues/16778
  • https://github.com/cypress-io/cypress/issues/16773
  • https://github.com/cypress-io/cypress/issues/16452
  • https://github.com/cypress-io/cypress/issues/17302
  • https://github.com/cypress-io/cypress/issues/17446
  • https://github.com/cypress-io/cypress/issues/17945
  • https://github.com/cypress-io/cypress/issues/17253
  • https://github.com/cypress-io/cypress/issues/17252
  • https://github.com/cypress-io/cypress/issues/16771
  • https://github.com/cypress-io/cypress/issues/16777
  • https://github.com/cypress-io/cypress/issues/16774
  • https://github.com/cypress-io/cypress/issues/18275
  • https://github.com/cypress-io/cypress/issues/16777

jennifer-shehane avatar Jul 14 '21 18:07 jennifer-shehane

Is there any update on this?

Amrita19900406 avatar Jul 16 '21 11:07 Amrita19900406

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

narayananpalani avatar Jul 17 '21 20:07 narayananpalani

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

jennifer-shehane avatar Jul 20 '21 17:07 jennifer-shehane

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

anthonyp avatar Aug 03 '21 16:08 anthonyp

waiting for supporting several domains!

MaxVolobuev avatar Aug 11 '21 11:08 MaxVolobuev

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...

AndreyYevtukhov avatar Oct 13 '21 06:10 AndreyYevtukhov

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

JamboBuenna avatar Oct 18 '21 11:10 JamboBuenna

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?

dmitry avatar Oct 19 '21 17:10 dmitry

Going to guess, Automation as a Service?

GaxZE avatar Oct 19 '21 17:10 GaxZE

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?

AlexDaniel avatar Oct 28 '21 11:10 AlexDaniel

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

MariyaQA avatar Oct 28 '21 13:10 MariyaQA

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.

jennifer-shehane avatar Nov 02 '21 22:11 jennifer-shehane

What is AaaS?

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

bmuenzenmeyer avatar Nov 16 '21 15:11 bmuenzenmeyer

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

modern-sapien avatar Dec 01 '21 18:12 modern-sapien

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?

GaxZE avatar Dec 01 '21 18:12 GaxZE

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...

AndreyYevtukhov avatar Dec 02 '21 14:12 AndreyYevtukhov

Is there any update on this issue?

seidhkona avatar Feb 15 '22 18:02 seidhkona

@jennifer-shehane Any update on this issue?

ganeshac123 avatar Feb 16 '22 05:02 ganeshac123

@jennifer-shehane Any update on this issue?

dsierrase avatar Mar 15 '22 14:03 dsierrase

@jennifer-shehane @cy-veronica @cypress-app-bot @cypress-github-team-services-sa Any updates on this issue? Many customers waiting for your inputs

ganeshac123 avatar Mar 16 '22 05:03 ganeshac123

For those wanting updates, see the commits happening on this branch

ianjamieson avatar Mar 16 '22 08:03 ianjamieson

Really looking forward to a release, any ETA? The branch is quite active, which is great, but it's unclear how much is left 🤔

thedotedge avatar Mar 29 '22 20:03 thedotedge

Really looking forward to a release, any ETA for this release ? @anthonyp @ianjamieson @jennifer-shehane @cy-veronica @cypress-app-bot

ganeshac123 avatar Apr 07 '22 13:04 ganeshac123

Hey guys, cypress dev here. 👋 First of all thank you all for your patience on this issue, it's been a long time coming. We're diligently working away to add this feature on the feature-multidomain branch. You can follow along on our pull request #18075 as the feature gets pulled into the develop branch.

This feature will be released at first as an experimental feature so we can gather feedback from you all before it becomes generally available in a future major release.

As for timelines, take this with a grain of salt, but we're expecting to release the experimental version within the next couple of months.

mjhenkes avatar Apr 07 '22 17:04 mjhenkes

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[bot] avatar Apr 25 '22 12:04 cypress-bot[bot]

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[bot] avatar Apr 25 '22 18:04 cypress-bot[bot]

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

mjhenkes avatar Apr 26 '22 17:04 mjhenkes

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

emilyrohrbough avatar Dec 06 '22 13:12 emilyrohrbough