Skip to content
New issue

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

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

Already on GitHub? # to your account

tests: refresh sample artifacts #16322

Merged
merged 4 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
23,217 changes: 12,702 additions & 10,515 deletions core/test/fixtures/user-flows/artifacts/step0/artifacts.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

33,379 changes: 13,066 additions & 20,313 deletions core/test/fixtures/user-flows/artifacts/step0/defaultPass.trace.json

Large diffs are not rendered by default.

9,112 changes: 5,288 additions & 3,824 deletions core/test/fixtures/user-flows/artifacts/step1/artifacts.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

63,750 changes: 26,322 additions & 37,428 deletions core/test/fixtures/user-flows/artifacts/step1/defaultPass.trace.json

Large diffs are not rendered by default.

95 changes: 43 additions & 52 deletions core/test/fixtures/user-flows/artifacts/step2/artifacts.json

Large diffs are not rendered by default.

27,390 changes: 15,153 additions & 12,237 deletions core/test/fixtures/user-flows/artifacts/step3/artifacts.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

27,528 changes: 13,999 additions & 13,529 deletions core/test/fixtures/user-flows/artifacts/step3/defaultPass.trace.json

Large diffs are not rendered by default.

2,854 changes: 1,236 additions & 1,618 deletions core/test/fixtures/user-flows/reports/sample-flow-result.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/test/lib/lighthouse-compatibility-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ describe('backward compatibility', () => {
);
assert.deepStrictEqual(
preparedResult.audits['modern-image-formats'].metricSavings,
{LCP: 1500, FCP: 0}
{LCP: 1650, FCP: 0}
);
});
});
813 changes: 335 additions & 478 deletions core/test/results/artifacts/artifacts.json

Large diffs are not rendered by default.

2,627 changes: 1,327 additions & 1,300 deletions core/test/results/artifacts/defaultPass.devtoolslog.json

Large diffs are not rendered by default.

301,794 changes: 154,834 additions & 146,960 deletions core/test/results/artifacts/defaultPass.trace.json

Large diffs are not rendered by default.

1,298 changes: 533 additions & 765 deletions core/test/results/sample_v2.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions report/test/generator/report-generator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('ReportGenerator', () => {
expect(lines.length).toBeGreaterThan(100);
expect(lines.slice(0, 15).join('\n')).toMatchInlineSnapshot(`
"\\"requestedUrl\\",\\"finalDisplayedUrl\\",\\"fetchTime\\",\\"gatherMode\\"
\\"http://localhost:10200/dobetterweb/dbw_tester.html\\",\\"http://localhost:10200/dobetterweb/dbw_tester.html\\",\\"2024-04-18T17:02:05.457Z\\",\\"navigation\\"
\\"http://localhost:10200/dobetterweb/dbw_tester.html\\",\\"http://localhost:10200/dobetterweb/dbw_tester.html\\",\\"2025-02-05T01:31:01.240Z\\",\\"navigation\\"

category,score
\\"performance\\",\\"0.32\\"
Expand All @@ -113,10 +113,10 @@ category,score

category,audit,score,displayValue,description
\\"performance\\",\\"first-contentful-paint\\",\\"0.01\\",\\"6.8 s\\",\\"First Contentful Paint marks the time at which the first text or image is painted. [Learn more about the First Contentful Paint metric](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint/).\\"
\\"performance\\",\\"largest-contentful-paint\\",\\"0\\",\\"11.0 s\\",\\"Largest Contentful Paint marks the time at which the largest text or image is painted. [Learn more about the Largest Contentful Paint metric](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-largest-contentful-paint/)\\"
\\"performance\\",\\"total-blocking-time\\",\\"0.25\\",\\"1,070 ms\\",\\"Sum of all time periods between FCP and Time to Interactive, when task length exceeded 50ms, expressed in milliseconds. [Learn more about the Total Blocking Time metric](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time/).\\"
\\"performance\\",\\"largest-contentful-paint\\",\\"0\\",\\"10.9 s\\",\\"Largest Contentful Paint marks the time at which the largest text or image is painted. [Learn more about the Largest Contentful Paint metric](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-largest-contentful-paint/)\\"
\\"performance\\",\\"total-blocking-time\\",\\"0.26\\",\\"1,020 ms\\",\\"Sum of all time periods between FCP and Time to Interactive, when task length exceeded 50ms, expressed in milliseconds. [Learn more about the Total Blocking Time metric](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time/).\\"
\\"performance\\",\\"cumulative-layout-shift\\",\\"0.9\\",\\"0.1\\",\\"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).\\"
\\"performance\\",\\"speed-index\\",\\"0.18\\",\\"8.5 s\\",\\"Speed Index shows how quickly the contents of a page are visibly populated. [Learn more about the Speed Index metric](https://developer.chrome.com/docs/lighthouse/performance/speed-index/).\\"
\\"performance\\",\\"speed-index\\",\\"0.18\\",\\"8.4 s\\",\\"Speed Index shows how quickly the contents of a page are visibly populated. [Learn more about the Speed Index metric](https://developer.chrome.com/docs/lighthouse/performance/speed-index/).\\"
"
`);

Expand Down
20 changes: 10 additions & 10 deletions report/test/renderer/performance-category-renderer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ describe('PerfCategoryRenderer', () => {
const url = new URL(href);
expect(url.hash.split('&')).toMatchInlineSnapshot(`
Array [
"#FCP=6815",
"LCP=10954",
"TBT=1066",
"#FCP=6803",
"LCP=10894",
"TBT=1018",
"CLS=0",
"SI=8471",
"TTI=8126",
"SI=8407",
"TTI=7992",
]
`);
});
Expand All @@ -216,12 +216,12 @@ Array [
try {
expect(url.hash.split('&')).toMatchInlineSnapshot(`
Array [
"#FCP=6815",
"LCP=10954",
"TBT=1066",
"#FCP=6803",
"LCP=10894",
"TBT=1018",
"CLS=0.1",
"SI=8471",
"TTI=8126",
"SI=8407",
"TTI=7992",
"device=mobile",
"version=6.0.0",
]
Expand Down
4 changes: 2 additions & 2 deletions shared/test/localization/swap-locale-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ describe('swap-locale', () => {

// Formatted numbers in placeholders.
expect(lhrEn.audits['mainthread-work-breakdown'].displayValue).
toMatchInlineSnapshot(`"2.7 s"`);
toMatchInlineSnapshot(`"2.1 s"`);
expect(lhrDe.audits['mainthread-work-breakdown'].displayValue).
toMatchInlineSnapshot(`"2,7 s"`);
toMatchInlineSnapshot(`"2,1 s"`);
/* eslint-enable no-irregular-whitespace */
});

Expand Down