gray-kilobyte-89541
12/22/2022, 2:36 PMjs
function returnSomething() {
return cy.log('howdy').then(() => {
return 'yo'
})
}
it('returns values', () => {
returnSomething().then(cy.log)
})
Also about return values - inside returnSomething
you could do
js
function returnSomething() {
cy.log('howdy')
return cy.wrap('yo')
}