Invoke Query returns promise in next then in Cypress 12 #25386
Labels
E2E
Issue related to end-to-end testing
type: bug
type: unexpected behavior
User expected result, but got another
v12.0.0 🐛
Current behavior
I am using Gleb's tutorial here, https://glebbahmutov.com/blog/cypress-automation/, to automatically grant permissions in the Chrome browser to the clipboard. I then test to make sure the permission has been granted. But in Cypress 12, the
result
variable in the code snippet below is a promise and thus result.state is undefined and the test fails. This test works under 11.2.0I have also tried writing the test this way:
state is also undefined in this case.
Desired behavior
Cypress should resolve the promise and return the
result
object definingclipboard-read
which would have a state property.Test code to reproduce
Here is a repo:
https://github.com/farlandlee/cypress-test-tiny
Cypress Version
12.3.0
Node version
v16.18.1
Operating System
MacOS 13.1 (22C65)
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: