Add 50ms wait for flaky telemetry popup test (#1449)

This commit is contained in:
Angela P Wen
2022-08-02 17:24:07 +02:00
committed by GitHub
parent c3a21b93c0
commit beb5b78b89

View File

@@ -250,6 +250,9 @@ describe('telemetry reporting', function() {
await telemetryListener.initialize();
// Wait 50 ms for user's selection to propagate in settings.
await wait(50);
// Dialog opened, user clicks "yes" and telemetry enabled
expect(window.showInformationMessage).to.have.been.calledOnce;
expect(ENABLE_TELEMETRY.getValue()).to.eq(true);