ui/efficiency SettingsSearchTest and SettingsCustomizeSimpleToolbarTest fail on the Nightly build
Categories
(Firefox for Android :: UI Tests, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: aaronmt, Assigned: aaronmt)
References
Details
Attachments
(1 external file)
Two ui/efficiency tests fail consistently (on both attempts) when run against the R8-optimized Nightly build in fenix-nightly(ui-test-arm-nightly), while they pass on the debug build in fenix-tae-arm-debug. Neither failure is caused by R8; both tests rely on assumptions that only hold for debug builds.
-
SettingsSearchTest#verifySearchShortcutChangesAreReflectedInSearchSelectorMenuTestjava.lang.AssertionError: 'Search selector menu engine: YouTube' not found (COMPOSE_BY_CONTENT_DESCRIPTION -> YouTube)
SettingsSearchManageShortcutsPage.selectSearchShortcut clicks findObject(text(engineName)).getFromParent(index(checkboxIndex)). The rows in SearchEngineShortcuts carry no semantics, so every checkbox and label in the list are siblings and the index is a position in the whole list, not within the engine row. Debug and Nightly request the search configuration with different channels (SearchUpdateChannel.DEFAULT vs SearchUpdateChannel.NIGHTLY in Core), so the engine list differs (Nightly also lists Perplexity). On Nightly the click at index 13 toggles Wikipedia instead of YouTube, which the test video confirms.
Proposed fix: locate the checkbox with SearchEngineShortcutsTestTag.checkbox(engineName) (as the legacy robot does), click it only if it is unchecked, assert that it ends up checked, and drop the checkboxIndex parameter.
-
SettingsCustomizeSimpleToolbarTest#verifyTheSimpleToolbarLayoutHomepageShortcutOptionTestjava.lang.AssertionError: Failed to verify NAVIGATION_READY readiness for SearchBarComponent
After mozEnterText and mozPressEnter in the search bar, the final on.browserPage.navigateToPage() checks for the engineView resource id about 50 ms after Enter, does not find it, assumes the app is still on SearchBarComponent, and fails that page's readiness check. The failure screen dump shows the page did load (the address bar shows the second test page and two tabs are open), so this is a timing race. A possible Nightly-specific contributor is the tab-management-enhancements Nimbus default opening_animation_enabled: true, which only applies to the nightly channel (unverified).
Proposed fix: after mozPressEnter, wait for the browser page explicitly with a timed mozVerify(BrowserPageSelectors.ENGINE_VIEW) instead of calling navigateToPage().
| Assignee | ||
Comment 1•15 hours ago
|
||
Comment 3•10 hours ago
|
||
| bugherder | ||
Description
•