Pass cy.intercept() alias to cy.origin() #23367
Unanswered
dvkuenssberg
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I need to intercept a request within a
cy.origin()
block. Issue #20720 describes that it is not possible to usecy.intercept()
within acy.origin()
block, but can workaround this by usingcy.intercept()
outside of it. However, I cannot access the intercept alias within thecy.origin()
block, which is crucial in my case so that I can wait until the resource is loaded. Is it possible to pass the alias to theorigin
block?Example:
Beta Was this translation helpful? Give feedback.
All reactions