Last active
March 28, 2018 06:04
-
-
Save NicholasBoll/36283abfea1bf45513cb25e3379399d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cy.wrap('foo').as('bar') | |
cy.get('@bar').then(subject => { | |
subject // JQuery<HTMLElement> | |
console.log(subject) // logs 'foo' | |
}) | |
cy.get<string>('@bar').then(subject => { | |
subject // string | |
console.log(subject) // logs 'foo' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment