mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-09 12:41:07 +01:00
* MatrixChat-test: clean up better in `afterEach` Make the MatrixChat tests behave better by letting them finish their work in an `act` in afterEach. Otherwise we can end up mounting new components during cleanup, which run tasks in the background * MatrixChat-test: clean up dispatcher test This test was kicking off a dispatcher job which would then open a UserDeviceSettings dialog once the test had finished. That would then throw exceptions because some of the mock environment had been torn down. We're just testing that it opens the right dialog, so better to intercept `createDialog`. Aso add an `act` to reduce warnings, and replace a `flushPromises` with a `waitFor` to make the test more robust.