How to set the value of a React functional component's variable for Cypress test? #22531
Answered
by
maxpopovitch
maxpopovitch
asked this question in
Component Testing
-
There is a React functional component which I want to cover with Cypress tests:
and this is how I'm trying to cover this component with tests:
First scenario, where |
Beta Was this translation helpful? Give feedback.
Answered by
maxpopovitch
Jun 28, 2022
Replies: 1 comment
-
Since |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maxpopovitch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since
mount
returnsPromise
, I've found a way to call the functions I need inthen
, so please ignore my question.