Eula screen tests throws console warnings to wrap #390
Labels
brightlayer-ui
Used to identify Brightlayer UI platform issues for easy filtering
bug
Something not working as expected
Milestone
Describe the bug / expected behavior
While running should call onNext, when Next button clicked test this warning displays in console.
Warning: An update to EulaScreen inside a test was not wrapped in act(...).
Several attempts of using await act() or just act() at step fireEvent.click(nextButton) does not clear up the warning.
What are the steps to reproduce?
Screenshots / Screen recording
Code snippet / Link to minimum reproduction example
Your environment information
Suggested fix
Anything else to add?
https://kentcdodds.com/blog/fix-the-not-wrapped-in-act-warning
The text was updated successfully, but these errors were encountered: