Skip to content

Commit

Permalink
tests(smokehouse): do not assert on flaky node path (#10827)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored May 28, 2020
1 parent 5b90acb commit f3d656a
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
{
Expand All @@ -27,47 +31,43 @@ const expectations = [
async: false,
defer: false,
source: 'head',
devtoolsNodePath: '2,HTML,0,HEAD,5,SCRIPT',
},
{
type: null,
src: 'http://localhost:10200/byte-efficiency/bundle.js',
async: false,
defer: false,
source: 'head',
devtoolsNodePath: '2,HTML,0,HEAD,6,SCRIPT',
},
{
type: null,
src: null,
async: false,
defer: false,
source: 'body',
devtoolsNodePath: '2,HTML,1,BODY,0,DIV,3,SCRIPT',
content: /shadowRoot/,
},
{
type: null,
src: null,
async: false,
defer: false,
source: 'body',
devtoolsNodePath: '2,HTML,1,BODY,3,SCRIPT',
content: /generateInlineStyleWithSize/,
},
{
type: null,
src: 'http://localhost:10200/byte-efficiency/delay-complete.js?delay=8000',
async: true,
defer: false,
source: 'body',
devtoolsNodePath: '2,HTML,1,BODY,1438,SCRIPT',
},
{
type: null,
src: null,
async: false,
defer: false,
source: 'body',
devtoolsNodePath: '2,HTML,1,BODY,1439,SCRIPT',
content: /Used block #1/,
},
{
Expand All @@ -76,7 +76,6 @@ const expectations = [
async: false,
defer: false,
source: 'body',
devtoolsNodePath: '2,HTML,1,BODY,1440,SCRIPT',
content: /Unused block #1/,
},
],
Expand Down

0 comments on commit f3d656a

Please sign in to comment.