You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest QUnit release is now verifying that when assert.step() was called you must also call assert.verifySteps() later (see qunitjs/qunit#1252). Unfortunately that breaks our assumptions and the "instrumented element" test abstraction we use to verify the events that an element emits. In some tests we use these instrumented elements without verifying the event order at the end which is now causing issues due to the QUnit changes.
There are a few potential solutions:
Run assert.steps = [] in the afterEach blocks to work around the new assertion (assert.steps appears to be private API though)
Use instrumented and regular elements depending on the test
Run assert.verifyStep() at the end of all tests even though the results don't actually matter to that test
IMHO none of those solutions are really great, but we will need to find/choose one to unblock our CI 🤔
The latest QUnit release is now verifying that when
assert.step()
was called you must also callassert.verifySteps()
later (see qunitjs/qunit#1252). Unfortunately that breaks our assumptions and the "instrumented element" test abstraction we use to verify the events that an element emits. In some tests we use these instrumented elements without verifying the event order at the end which is now causing issues due to the QUnit changes.There are a few potential solutions:
Run
assert.steps = []
in theafterEach
blocks to work around the new assertion (assert.steps
appears to be private API though)Use instrumented and regular elements depending on the test
Run
assert.verifyStep()
at the end of all tests even though the results don't actually matter to that testIMHO none of those solutions are really great, but we will need to find/choose one to unblock our CI 🤔
/cc @rwjblue
The text was updated successfully, but these errors were encountered: