How to test multiple domains or origins with Cypress

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • In this video, we look at how to test multiple domains within your Cypress tests using the new origin and session APIs.
    docs:
    docs.cypress.i...
    docs.cypress.i...

Комментарии • 21

  • @kajotaese-uu7qm
    @kajotaese-uu7qm 2 года назад +10

    This feature is going to be used a lot. Thanks cypress team!

  • @PatricioHondagneuRoig
    @PatricioHondagneuRoig 2 года назад +2

    Woohoo! 🎉 _(takes off shirt and jumps on top of the table)_
    I waited for this feature for literal years, thanks for your work guys!

  • @yevhenspilnyk4150
    @yevhenspilnyk4150 2 года назад +2

    Great. We waited for it! 🙂

  • @bhavikdoshi28
    @bhavikdoshi28 2 года назад +2

    I tried to use this feature clicking on a button which opens a new window to login. However, for my case the origin stays at old URL and does not change to newly opened window origin. Any workarounds for this?

    • @Imolos
      @Imolos 2 года назад

      New window is opened by attribute (well I always find attribute} doesn't remember name but value is "_blank". If you write code to ignore this attribute new tab shouldn't open.
      edit: the attribute is target="_blank"

  • @Manivelarino
    @Manivelarino 2 года назад +5

    please let us re-run only the failed tests while using the cypress UI instead of the whole suite 😭

  • @manuQAE
    @manuQAE 2 года назад +1

    Wonderful!

  • @tewzoful
    @tewzoful 2 года назад

    I get a waiting for page to load --> please can you advise

  • @nesrineouennich954
    @nesrineouennich954 2 года назад +1

    I'm facing a problem with cy.origin after the redirection to the url the left panel of cypress dissapear, any idea ?

    • @BR-pz5qk
      @BR-pz5qk Год назад

      I am experiencing the same.. Did you managed to solve this? Thanks

    • @NesrineOuennich
      @NesrineOuennich Год назад +1

      @@BR-pz5qk I have upgraded cypress version, I'm working with the 12.5.0 now

  • @S4NTIS0
    @S4NTIS0 Год назад

    It didn't work for me, I still have an issue in the set up of cy.session (which is cy.origin)

  • @yogitarawat7808
    @yogitarawat7808 Год назад

    how to setup your auth0 file and how we get the link of auth0

  • @techknowledgebase4504
    @techknowledgebase4504 2 года назад +3

    Are this work with azure ad SSO? Cookies ?

  • @huseyinmkocal4353
    @huseyinmkocal4353 2 года назад +1

    👏👏

  • @IAmNotABot
    @IAmNotABot 2 года назад +1

    Better late than never!

  • @techmanbhatinc.1075
    @techmanbhatinc.1075 2 года назад

    Anyone got this working for testing facebook login ?? Does not work for me.

  • @lucasdonato1149
    @lucasdonato1149 2 года назад +1

    Top

  • @joshua6610
    @joshua6610 Год назад +1

    replace experimentalSessionAndOrigin with experimentalOriginDependencies: true and follow the rest;)