Make quicksuggest telemetry tests work with the result menu
Categories
(Firefox :: Address Bar, task, P3)
Tracking
()
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)
Spinning this off from bug 1790020. These tests currently have the result menu disabled via:
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 2•2 years ago
|
||
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?
Assignee | ||
Comment 3•2 years ago
|
||
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?
Assignee | ||
Comment 4•1 year ago
|
||
Stealing this
Assignee | ||
Comment 5•1 year ago
|
||
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
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
Description
•