How to alias from within overwriteQuery
#25859
Unanswered
Sjeiti
asked this question in
Questions and Help
Replies: 1 comment
-
I'm sure @BlueWinds would know the answer to this one. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Before v12 I had this lazy overwrite
This meant I could call
cy.get('@foo')
before having to docy.get('[data-cy=foo]').as('foo')
.I'm trying to reimplement this using
overwriteQuery
but I cannot seem to get the alias set.The following works without setting the alias. I tried using
cy.addAlias
but didn't get very far.any help is appreciated
Ron
Beta Was this translation helpful? Give feedback.
All reactions