mediawiki-extensions-Visual.../modules/ve-mw/tests/ui/widgets
Timo Tijhof 6cbedbf9d2 tests: Adopt QUnit.test.each() and native async-await in a few places
* Remove need for manual hacking of sub groups via "msg" strings
  carefully prepended to every assertion.

* Improve CI details, by reporting the specific case that failed,
  and local dev via ability to re-run each case, and reporting names
  directly in the HTML Reporter and CLI summary.

* Reduce need for assert.async() and tracking of callbacks, especially
  to improve failure details in case of Promise rejection.
  Current logic was likely to cause a confusing timeout instead of a
  clear failure if the promise ends up rejected.

  QUnit propagates these as part of awaiting and asserting the test
  closure's promise value (as async fn) automatically.

  This approach also avoids the pitfal of a falsely passing test
  when an assertion inside a done() handler was never reached.

* Use modern for-of where possible to remove need for closures and
  arrow functions. Thus reducing complexity of test code, where
  complexity should be kept lowest to avoid false confidence.

* Use plain for-in instead of overly complex Object.keys().forEach().

Change-Id: I934a266e75e64371081f104cfb867fb2c282c84a
2024-05-01 19:01:19 +01:00
..
ve.ui.MWParameterCheckboxInputWidget.test.js build: Update ESLint to 0.26.0 and autofix 2023-11-28 11:18:09 +00:00
ve.ui.MWTemplateTitleInputWidget.test.js tests: Adopt QUnit.test.each() and native async-await in a few places 2024-05-01 19:01:19 +01:00
ve.ui.MWTransclusionOutlineButtonWidget.test.js Improve test coverage of template dialog outline 2022-05-04 12:01:58 +02:00
ve.ui.MWTransclusionOutlineParameterSelectWidget.test.js assert.ok -> assert.true 2021-11-09 00:30:20 +00:00
ve.ui.MWTransclusionOutlineParameterWidget.test.js assert.ok -> assert.true 2021-11-09 00:30:20 +00:00
ve.ui.MWTransclusionOutlinePartWidget.test.js Improve test coverage of template dialog outline 2022-05-04 12:01:58 +02:00
ve.ui.MWTransclusionOutlinePlaceholderWidget.test.js Improve test coverage of template dialog outline 2022-05-04 12:01:58 +02:00
ve.ui.MWTransclusionOutlineTemplateWidget.test.js Improve test coverage of template dialog outline 2022-05-04 12:01:58 +02:00
ve.ui.MWTransclusionOutlineWidget.test.js Differ between setting and highlighting a parameter 2022-07-12 10:18:56 +00:00