Open Bug 2063301 Opened 29 days ago Updated 29 days ago

Bug 2063301 - [efficiency] Convert SettingsSearchTest.verifyShowSearchSuggestionsToggleTest to ui/efficiency

Categories

(Firefox for Android :: UI Tests, task)

task

Tracking

()

People

(Reporter: jajohnson, Assigned: jajohnson)

References

(Blocks 1 open bug)

Details

Converts the legacy SettingsSearchTest.verifyShowSearchSuggestionsToggleTest smoke test to the ui/efficiency framework, and removes its live-network dependency.

The legacy test asserts on LIVE DuckDuckGo search suggestions and its own comment cites bug 1813587, the Remote Settings ingestion race that makes those suggestions unreliable on a cold run. The port instead creates a custom search engine whose optional "Search suggestion API" URL points at the local mock web server, so the suggestions are deterministic and offline.

Also replaces the legacy negative assertion, which cannot fail: verifySuggestionsAreNotDisplayed asserts on the PLURAL container tag mozac.awesomebar.suggestions, which carries no text of its own, so assertAny(hasText(x).not()) holds whenever the awesomebar is composed. The port asserts the absence of the specific suggestion the first half of the test required.

Adds a searchSuggestions route to SearchDispatcher and a suggest-URL field selector plus page-object support.

Why: Part of the ongoing legacy smoke -> ui/efficiency conversion campaign. This is the last of the four tests in the current batch that are not owned by anyone else on the team, and it removes a live-network dependency plus a documented race from the suite.

Context: part of the ui/efficiency UI-test modernization. This is a faithful port of an existing legacy ui/ smoke test onto the ui/efficiency framework — same coverage and assertions, but far less per-test code via a shared page-object / selector / navigation layer, which bends the UI-test maintenance cost curve. Smoke-conversion campaign.

TestRail: 233588

Summary: [efficiency] Convert SettingsSearchTest.verifyShowSearchSuggestionsToggleTest to ui/efficiency → Bug 2063301 - [efficiency] Convert SettingsSearchTest.verifyShowSearchSuggestionsToggleTest to ui/efficiency
You need to log in before you can comment on or make changes to this bug.