diff --git a/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js index 930350ce4200..22479ecea38a 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js @@ -19,6 +19,10 @@ const expectations = [ async: false, defer: false, source: 'head', + // Only do a single assertion for `devtoolsNodePath`: this can be flaky for elements + // deep in the DOM, and the sample LHR test has plenty of places that would catch + // a regression in `devtoolsNodePath` calculation. Keep just one for the benefit + // of other smoke test runners. devtoolsNodePath: '2,HTML,0,HEAD,3,SCRIPT', }, { @@ -27,7 +31,6 @@ const expectations = [ async: false, defer: false, source: 'head', - devtoolsNodePath: '2,HTML,0,HEAD,5,SCRIPT', }, { type: null, @@ -35,7 +38,6 @@ const expectations = [ async: false, defer: false, source: 'head', - devtoolsNodePath: '2,HTML,0,HEAD,6,SCRIPT', }, { type: null, @@ -43,7 +45,7 @@ const expectations = [ async: false, defer: false, source: 'body', - devtoolsNodePath: '2,HTML,1,BODY,0,DIV,3,SCRIPT', + content: /shadowRoot/, }, { type: null, @@ -51,7 +53,7 @@ const expectations = [ async: false, defer: false, source: 'body', - devtoolsNodePath: '2,HTML,1,BODY,3,SCRIPT', + content: /generateInlineStyleWithSize/, }, { type: null, @@ -59,7 +61,6 @@ const expectations = [ async: true, defer: false, source: 'body', - devtoolsNodePath: '2,HTML,1,BODY,1438,SCRIPT', }, { type: null, @@ -67,7 +68,6 @@ const expectations = [ async: false, defer: false, source: 'body', - devtoolsNodePath: '2,HTML,1,BODY,1439,SCRIPT', content: /Used block #1/, }, { @@ -76,7 +76,6 @@ const expectations = [ async: false, defer: false, source: 'body', - devtoolsNodePath: '2,HTML,1,BODY,1440,SCRIPT', content: /Unused block #1/, }, ],