Skip to content

Commit

Permalink
Metadata for scenario added for json report
Browse files Browse the repository at this point in the history
  • Loading branch information
justyna-olszak-wttech committed Oct 25, 2021
1 parent a6596e4 commit cec1f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/util/engineTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ function generateTestPair (config, scenario, viewport, variantOrScenarioLabelSaf
url: scenario.url,
referenceUrl: scenario.referenceUrl,
expect: getScenarioExpect(scenario),
viewportLabel: viewport.label
viewportLabel: viewport.label,
metadata: scenario.metadata
};
}

Expand Down
3 changes: 2 additions & 1 deletion test/configs/backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"selectors": [],
"selectorExpansion": true,
"misMatchThreshold" : 0.1,
"requireSameDimensions": true
"requireSameDimensions": true,
"metadata": ["TEST-1"]
}
],
"paths": {
Expand Down

0 comments on commit cec1f27

Please sign in to comment.