Page MenuHomePhabricator

Cover the Scoped Typeahead Search Vue component with tests
Closed, ResolvedPublic

Description

The prototype implementation of Scoped Typeahead Search (T384730) doesn't include any unit / integration tests. These should be implemented before the component is released to users. We have some existing Jest tests for Wikibase and also the QUnit suite - developer should decide which of these makes more sense.

Acceptance Criteria

  • The Scoped Typeahead Search component is covered by tests
    • At least functionality in the original acceptance criteria T384730 is covered
  • The tests run automatically as part of the Wikibase CI jobs

Event Timeline

ArthurTaylor renamed this task from Cover the Scoped Typeahead Search Vue component with tests to [SW] Cover the Scoped Typeahead Search Vue component with tests.
ArthurTaylor renamed this task from [SW] Cover the Scoped Typeahead Search Vue component with tests to Cover the Scoped Typeahead Search Vue component with tests.Feb 12 2025, 1:55 PM
ArthurTaylor updated the task description. (Show Details)

Change #1127547 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] WIP: Set up Jest tests for ScopedTypeaheadSearch

https://gerrit.wikimedia.org/r/1127547

Change #1127547 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Set up Jest tests for ScopedTypeaheadSearch

https://gerrit.wikimedia.org/r/1127547

hoo moved this task from The Backlog to The Board on the Wikidata-Omega board.
hoo edited projects, added Wikidata-Omega (The Board); removed Wikidata-Omega.

Change #1133352 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] [WIP] Add tests for ScopedTypeaheadSearch

https://gerrit.wikimedia.org/r/1133352

Since I'm going to be on vacation for rest of the week, I'm moving this back to Ready for Development.

The current status is that the jest tests are working now. The ScopedTypeaheadSearch Vue component and its children are able to be successfully mounted. There are a couple very basic tests as well as some titles of tests I intended to write, but didn't get to. There's some TODOs around things that need fixing or to otherwise be done differently.

Change #1133352 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add tests for ScopedTypeaheadSearch

https://gerrit.wikimedia.org/r/1133352