Open theosanderson opened 5 months ago
The solution to this seems to be not handling the act wrapping ourselves but using await findByRole
instead of getByRole
(and similar renames throughout) which does the wrapping itself. https://medium.com/@AbbasPlusPlus/react-testing-library-understanding-act-and-when-to-use-it-301bd06fd1bc
(We probably want to tackle this soon as the spam makes dev hard)
Our unit test logs have a lot of:
https://github.com/loculus-project/loculus/actions/runs/8668362408/job/23773286148
We should implement this. This may prevent some hacks I had to do to stop tests flaking which involved adding timeouts between steps.