DEV: Make component-test `afterEach` async aware (PR #10099)

Before this fix, if a test case was async, afterEach callback would be executed immediately, without waiting for the test to finish. :grimacing:

GitHub

Wow! Great catch.

Seems very safe to merge since it only impacts tests