Reputation: 97
I am having a hard time returning a value from a custom command function to the main file.
command.js
spec.js
it does not return the expected value
Upvotes: 0
Views: 98
Reputation: 1104
Do you want to return the decodedTotp
value?
If yes, you have to do this explicitly at the end of your custom function:
<...>
console.log(decodedTotp)
return decodedTotp
})
})
Upvotes: 1