Description
Look into any existing external libraries we could use to improve component selection in tests to
- improve readability of tests by selecting User facing labels/text rather than class selectors.
- avoid having to update tests in the future due to DOM structure refactors.
Suggested library: https://github.com/testing-library/vue-testing-library
Also, look into using waitFor method in this testing library instead of explicitly choosing a number of ticks in our current awaitTicks method.
https://testing-library.com/docs/dom-testing-library/api-async/#waitfor
See discussion on patch: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/839618
Desired behavior/Acceptance criteria
n/a
Devices and Design (URLs or screenshots)
n/a
- Desktop: ...
- Small screens/mobile: ...
n/a
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist