Page MenuHomePhabricator

Autocomplete highlighting should ignore trailing space inserted by Android keyboard autocomplete
Closed, ResolvedPublic0 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  1. Surf to https://en.m.wikipedia.org/wiki/Main_Page on Android phone
  2. Tab "Search Wikipedia"
  3. Type "Wiki"
  4. Observe that all strings of "Wiki" are highlighted (bold)
    Screenshot_20220602-182655.jpg (2×1 px, 391 KB)
  5. From Android keyboard autocompletion, tab suggestion "Wikipedia"
  6. Observe that input field contains "Wikipedia " (including trailing space)
  7. Observe that "Wikipedia" is not highlighted (bold)
    Screenshot_20220602-182702.jpg (2×1 px, 441 KB)
  8. Expecting that "Wikipedia" is highlighted
  9. Remove trailing space
  10. Observe that "Wikipedia" is highlighted (bold)
    Screenshot_20220602-183205.jpg (2×1 px, 437 KB)

What happens?:

See "Observe that" above.

What should have happened instead?:

See "expecting that" above. Autocomplete highlighting should ignore trailing space inserted by Android keyboard autocomplete.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Firefox Android 100.3.0 (Build #2015881499), 409a30ff0+
AC: 100.0.12, 7b24cbd763
GV: 100.0.2-20220519220738
AS: 91.1.1

QA Results - Prod

ACStatusDetails
1T309795#9471095

Event Timeline

Jdlrobson subscribed.

Thanks for the bug report. We are looking to replace the mobile search with a Vue implementation sometime in September.

Jdlrobson raised the priority of this task from Low to Needs Triage.Dec 8 2023, 9:49 PM

Needs reprioritization.

Change 987772 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/MobileFrontend@master] SearchGateway._highlightSearchTerm: trim term

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

Change 987772 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] SearchGateway._highlightSearchTerm: trim term

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

Jdlrobson set the point value for this task to 0.

Adding to next week's sprint for QA

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

List of steps to reproduce (step by step, including full links if applicable):

Surf to https://en.m.wikipedia.org/wiki/Main_Page on Android phone
Tab "Search Wikipedia"
Type "Wiki"
✅ AC1: Observe that all strings of "Wiki" are highlighted (bold)

screenshot 409.png (1×499 px, 250 KB)

From Android keyboard autocompletion, tab suggestion "Wikipedia"
Observe that input field contains "Wikipedia " (including trailing space)
✅ AC1: Expecting that "Wikipedia" is highlighted

screenshot 211.mov.gif (1×498 px, 350 KB)

Remove trailing space
✅ AC3: Observe that "Wikipedia" is highlighted (bold)

screenshot 212.mov.gif (1×498 px, 814 KB)