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:
Matthew Noorenberghe 2019-09-25 15:38:52 +00:00
Родитель 4c863c9c5b
Коммит cdf3dbe21b
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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"]],
{