Make coach HAR advice use DOM advice (#3512)

This commit is contained in:
Peter Hedenskog 2021-11-22 03:42:02 +01:00 committed by GitHub
parent 67f41e189b
commit 2dae52aa5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -461,7 +461,12 @@ module.exports = {
if (result.har) {
// make sure to get the right run in the HAR
const myHar = api.pickAPage(result.har, harIndex);
const harResult = await api.analyseHar(myHar);
const harResult = await api.analyseHar(
myHar,
undefined,
coachAdvice,
options
);
advice = api.merge(coachAdvice, harResult);
}
queue.postMessage(