cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.01k stars 3.18k forks source link

[CT] Error: useFormState is not a function or its return value is not iterable #28331

Open raphaelbadia opened 11 months ago

raphaelbadia commented 11 months ago

Current behavior

When trying to test a react client that uses the hooks useFormState() and useFormStatus(), cypress crashes with the error mentioned above.

CleanShot 2023-11-14 at 12 24 16@2x

Desired behavior

I would like to be able to test my client components with cypress.

I believe the hook doesn't work because cypress can't use the latest react canary...!

Test code to reproduce

https://github.com/raphaelbadia/cypress-ct-useFormState

Cypress Version

13.5.0

Node version

18.18.2

Operating System

macOS 13.2.1

Debug Logs

No response

Other

No response

cypress-app-bot commented 5 months ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

raphaelbadia commented 5 months ago

well it's not stale, I have to give up using useFormState