зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1583043 - Wait for telemetry events before asserting in browser_entry_point_telemetry. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D47101 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4c863c9c5b
Коммит
cdf3dbe21b
|
@ -538,10 +538,11 @@ this.LoginTestUtils.telemetry = {
|
|||
Ci.nsITelemetry.DATASET_PRERELEASE_CHANNELS,
|
||||
false
|
||||
)[process];
|
||||
dump(`events: ${JSON.stringify(events, null, 2)}\n`);
|
||||
|
||||
if (!events) {
|
||||
return null;
|
||||
}
|
||||
|
||||
events = events.filter(e => e[1] == category);
|
||||
return events.length == count ? events : null;
|
||||
}, "waiting for telemetry event count of: " + count);
|
||||
|
|
|
@ -43,6 +43,7 @@ add_task(async function mainMenu_entryPoint() {
|
|||
let passwordManager = await openPasswordManager(openingFunc);
|
||||
info("mainMenu_entryPoint, password manager dialog shown");
|
||||
|
||||
await LoginTestUtils.telemetry.waitForEventCount(1);
|
||||
TelemetryTestUtils.assertEvents(
|
||||
[["pwmgr", "open_management", "mainmenu"]],
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче