Testing state update after api call`
Hello I am trying to test a
Getting the element fails even after state is updated.
This is to submit the user register form
Where its supposed to show:
Test:
This works as expected when tested manually.
register user component and I want to show an error message if I get an error from the rest api.Getting the element fails even after state is updated.
This is to submit the user register form
Where its supposed to show:
Test:
This works as expected when tested manually.
