If we lack a HAR, get browser info from options (#3658)

This commit is contained in:
Peter Hedenskog 2022-05-20 12:55:07 +02:00 committed by GitHub
parent f3c2989b17
commit dae50493ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,10 @@ module.exports = {
);
}
run.har = api.pickAPage(result.har, harIndex);
} else {
// If we do not have a HAR, use browser info from options
const testInfo = { browser: options.browser };
queue.postMessage(make('browsertime.browser', testInfo));
}
// Hack to get axe data. In the future we can make this more generic