Closed Bug 2034507 Opened 1 month ago Closed 25 days ago

Simplify search mode switcher item activation in tests

Categories

(Firefox :: Address Bar, task, P1)

Firefox 152
task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: mbeier, Assigned: mbeier)

References

Details

(Whiteboard: [sng])

Attachments

(2 files)

There are many cases similar to

let popup = await UrlbarTestUtils.openSearchModeSwitcher(window);
let popupHidden = UrlbarTestUtils.searchModeSwitcherPopupClosed(window);
popup.querySelector("panel-item[data-engine-id=engine1]").button.click();
await popupHidden;

throughout the urlbar test code. We could make it possible to use .click() instead of .button.click() and introduce a helper that can do those 4 lines in one call to simplify the code a bit.

Attachment #9573045 - Attachment description: Bug 2034507 - Simplify search mode switcher item activation in tests. r?#urlbar-reviewers → Bug 2034507 - Part 2: Simplify search mode switcher item activation in tests. r?#urlbar-reviewers
Pushed by mbeier@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2e879bffb415 https://hg.mozilla.org/integration/autoland/rev/c8dcd33eb5eb Part 1: Wait for addon page options to become active before clicking in tests. r=robwu https://github.com/mozilla-firefox/firefox/commit/cb5e8e8f09a2 https://hg.mozilla.org/integration/autoland/rev/0a105ae0e10e Part 2: Simplify search mode switcher item activation in tests. r=urlbar-reviewers,extension-reviewers,akulyk,dao,robwu
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
QA Whiteboard: [search][qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: