'cy.origin is not a function error displayed
I am trying to use the new origin function and I got this error:
No commands were issued in this test.
**TypeError The following error originated from your test code, not from Cypress.
cy.origin is not a function**
The code is really basic:
cy.origin('https://www.acme.com', () => {
cy.visit('/history/founder')
cy.get('h1').contains('About our Founder, Marvin Acme')
})
Thanks a lot!
Solution 1:[1]
Two things to check
have you added
experimentalSessionAndOrigin: truetocypress.json?are you using Cypres v9.6.0+
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | SuchAnIgnorantThingToDo-UKR |
