Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: refresh sample artifacts #15962

Merged
merged 9 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions cli/test/smokehouse/__snapshots__/report-assert-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`getAssertionReport works (multiple failing) 1`] = `
"X difference at cumulative-layout-shift audit.details.items.length
expected: []
found: [{\\"cumulativeLayoutShiftMainFrame\\":0.13570762803819444,\\"newEngineResult\\":{\\"cumulativeLayoutShift\\":0.13570762803819444,\\"cumulativeLayoutShiftMainFrame\\":0.13570762803819444},\\"newEngineResultDiffered\\":false}]
found: [{\\"cumulativeLayoutShiftMainFrame\\":0.10327235246578984,\\"newEngineResult\\":{\\"cumulativeLayoutShift\\":0.10327235246578984,\\"cumulativeLayoutShiftMainFrame\\":0.10327235246578984},\\"newEngineResultDiffered\\":false}]


X difference at cumulative-layout-shift audit.details.blah
Expand All @@ -15,11 +15,11 @@ exports[`getAssertionReport works (multiple failing) 1`] = `
\\"id\\": \\"cumulative-layout-shift\\",
\\"title\\": \\"Cumulative Layout Shift\\",
\\"description\\": \\"Cumulative Layout Shift measures the movement of visible elements within the viewport. [Learn more about the Cumulative Layout Shift metric](https://web.dev/articles/cls).\\",
\\"score\\": 0.8,
\\"score\\": 0.89,
\\"scoreDisplayMode\\": \\"numeric\\",
\\"numericValue\\": 0.13570762803819444,
\\"numericValue\\": 0.10327235246578984,
\\"numericUnit\\": \\"unitless\\",
\\"displayValue\\": \\"0.136\\",
\\"displayValue\\": \\"0.103\\",
\\"scoringOptions\\": {
\\"p10\\": 0.1,
\\"median\\": 0.25
Expand All @@ -28,10 +28,10 @@ exports[`getAssertionReport works (multiple failing) 1`] = `
\\"type\\": \\"debugdata\\",
\\"items\\": [
{
\\"cumulativeLayoutShiftMainFrame\\": 0.13570762803819444,
\\"cumulativeLayoutShiftMainFrame\\": 0.10327235246578984,
\\"newEngineResult\\": {
\\"cumulativeLayoutShift\\": 0.13570762803819444,
\\"cumulativeLayoutShiftMainFrame\\": 0.13570762803819444
\\"cumulativeLayoutShift\\": 0.10327235246578984,
\\"cumulativeLayoutShiftMainFrame\\": 0.10327235246578984
},
\\"newEngineResultDiffered\\": false
}
Expand All @@ -43,18 +43,18 @@ exports[`getAssertionReport works (multiple failing) 1`] = `
exports[`getAssertionReport works (trivial failing) 1`] = `
"X difference at cumulative-layout-shift audit.details.items.length
expected: []
found: [{\\"cumulativeLayoutShiftMainFrame\\":0.13570762803819444,\\"newEngineResult\\":{\\"cumulativeLayoutShift\\":0.13570762803819444,\\"cumulativeLayoutShiftMainFrame\\":0.13570762803819444},\\"newEngineResultDiffered\\":false}]
found: [{\\"cumulativeLayoutShiftMainFrame\\":0.10327235246578984,\\"newEngineResult\\":{\\"cumulativeLayoutShift\\":0.10327235246578984,\\"cumulativeLayoutShiftMainFrame\\":0.10327235246578984},\\"newEngineResultDiffered\\":false}]

found result:
{
\\"id\\": \\"cumulative-layout-shift\\",
\\"title\\": \\"Cumulative Layout Shift\\",
\\"description\\": \\"Cumulative Layout Shift measures the movement of visible elements within the viewport. [Learn more about the Cumulative Layout Shift metric](https://web.dev/articles/cls).\\",
\\"score\\": 0.8,
\\"score\\": 0.89,
\\"scoreDisplayMode\\": \\"numeric\\",
\\"numericValue\\": 0.13570762803819444,
\\"numericValue\\": 0.10327235246578984,
\\"numericUnit\\": \\"unitless\\",
\\"displayValue\\": \\"0.136\\",
\\"displayValue\\": \\"0.103\\",
\\"scoringOptions\\": {
\\"p10\\": 0.1,
\\"median\\": 0.25
Expand All @@ -63,10 +63,10 @@ exports[`getAssertionReport works (trivial failing) 1`] = `
\\"type\\": \\"debugdata\\",
\\"items\\": [
{
\\"cumulativeLayoutShiftMainFrame\\": 0.13570762803819444,
\\"cumulativeLayoutShiftMainFrame\\": 0.10327235246578984,
\\"newEngineResult\\": {
\\"cumulativeLayoutShift\\": 0.13570762803819444,
\\"cumulativeLayoutShiftMainFrame\\": 0.13570762803819444
\\"cumulativeLayoutShift\\": 0.10327235246578984,
\\"cumulativeLayoutShiftMainFrame\\": 0.10327235246578984
},
\\"newEngineResultDiffered\\": false
}
Expand Down
Loading
Loading