Closed Bug 1820825 Opened 2 years ago Closed 11 months ago

Make quicksuggest telemetry tests work with the result menu

Categories

(Firefox :: Address Bar, task, P3)

task
Points:
2

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: dao, Assigned: adw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [snt-urlbar-result-menu])

Attachments

(1 file, 1 obsolete file)

Type: defect → task
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED

Hey Drew, I'm trying to update quicksuggest tests that use setUpTelemetryTest: https://searchfox.org/mozilla-central/search?q=setUpTelemetryTest&case=true&path=
I've a attached a WIP / strawman patch in attachment 9323000 [details]. It's not particularly pretty and also doesn't work, although I imagine it could be fixed up if we want to go down that path. How do you think I should approach updating these tests?

Flags: needinfo?(adw)

Thanks for asking. I think we should replace the selectables param with commands, and then tests would specify "dismiss" instead of "urlbarView-button-block" and "help" instead of "urlbarView-button-help". For "urlbarView-row-inner", I think doTelemetryTest() can just assume each row is clickable and each test needs to click it, and there can be another param to specify the expected telemetry for that, like click or row or something.

That way each test doesn't need to worry about whether the menu is enabled or not. That logic would live in doTelemetryTest() and its helpers. If the menu is enabled, then for each of the commands, open the menu and click the relevant menu item; otherwise, convert "dismiss" to "urlbarView-button-block", etc., and click that button.

But hopefully we can remove the individual buttons in favor of the menu soon?

Flags: needinfo?(adw)
Blocks: 1827966
Blocks: 1831812

Stealing this

Assignee: dao+bmo → adw
Severity: -- → N/A
Priority: -- → P3

We may be able to remove some or all of this legacy telemetry, and the Glean
telemetry should maybe be moved to the other Glean tests, but for now I'd like
to focus on getting rid of the resultMenu pref.

Depends on D190746

Attachment #9323000 - Attachment is obsolete: true
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b6c0f50f8b8f Make quicksuggest telemetry tests work with the result menu. r=dao
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: