Bug 1933939 - Integrate changed API of Glean v63.0.0 r=android-reviewers,chutten,pollymce,afranchuk

This also standardizes on using the defined "test-ping" for metrics in tests.

Differential Revision: https://phabricator.services.mozilla.com/D230527
This commit is contained in:
Jan-Erik Rediger
2024-12-13 13:50:28 +00:00
parent d98ae58c1c
commit 83ad41fdd6
108 changed files with 557 additions and 277 deletions

View File

@@ -97,6 +97,8 @@ add_task(async function toolbarButtons() {
Services.telemetry.getSnapshotForKeyedScalars("main", true);
Services.fog.testResetFOG();
// We want to record events into this ping, so it has to be enabled.
GleanPings.prototypeNoCodeEvents.setEnabled(true);
let newTab = await BrowserTestUtils.openNewForegroundTab(gBrowser);
let tabClose = BrowserTestUtils.waitForTabClosing(newTab);