Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI test suite is broken with latest QUnit release #335

Closed
Turbo87 opened this issue Mar 1, 2018 · 2 comments · Fixed by #344
Closed

CI test suite is broken with latest QUnit release #335

Turbo87 opened this issue Mar 1, 2018 · 2 comments · Fixed by #344
Labels

Comments

@Turbo87
Copy link
Member

Turbo87 commented Mar 1, 2018

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 🤔

/cc @rwjblue

@snewcomer
Copy link
Contributor

@Turbo87 Anything help I can provide or is this mainly a Robert question? I might be in favor of # 3 though.

@Turbo87
Copy link
Member Author

Turbo87 commented Mar 9, 2018

@snewcomer I guess any solution is better than no solution, so if you can work on a PR that unblocks CI that would be wonderful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants