diff --git a/core/test/audits/__snapshots__/predictive-perf-test.js.snap b/core/test/audits/__snapshots__/predictive-perf-test.js.snap index 45e5067b1ec8..47528ab2208a 100644 --- a/core/test/audits/__snapshots__/predictive-perf-test.js.snap +++ b/core/test/audits/__snapshots__/predictive-perf-test.js.snap @@ -2,23 +2,23 @@ exports[`Performance: predictive performance audit should compute the predicted values 1`] = ` Object { - "optimisticFCP": 2294, - "optimisticFMP": 2294, - "optimisticLCP": 2294, - "optimisticSI": 1393, - "optimisticTTI": 3795, - "pessimisticFCP": 2294, - "pessimisticFMP": 3233, - "pessimisticLCP": 3233, - "pessimisticSI": 3052, - "pessimisticTTI": 5272, - "roughEstimateOfFCP": 2294, - "roughEstimateOfFMP": 2764, - "roughEstimateOfLCP": 2764, + "optimisticFCP": 1059, + "optimisticFMP": 1059, + "optimisticLCP": 1445, + "optimisticSI": 261, + "optimisticTTI": 2132, + "pessimisticFCP": 1059, + "pessimisticFMP": 1059, + "pessimisticLCP": 1603, + "pessimisticSI": 1109, + "pessimisticTTI": 3981, + "roughEstimateOfFCP": 1059, + "roughEstimateOfFMP": 1059, + "roughEstimateOfLCP": 1524, "roughEstimateOfLCPLoadEnd": undefined, "roughEstimateOfLCPLoadStart": undefined, - "roughEstimateOfSI": 3172, - "roughEstimateOfTTFB": 611, - "roughEstimateOfTTI": 4607, + "roughEstimateOfSI": 1059, + "roughEstimateOfTTFB": 638, + "roughEstimateOfTTI": 3149, } `; diff --git a/core/test/audits/byte-efficiency/byte-efficiency-audit-test.js b/core/test/audits/byte-efficiency/byte-efficiency-audit-test.js index 4d42cf10acae..312810e37c26 100644 --- a/core/test/audits/byte-efficiency/byte-efficiency-audit-test.js +++ b/core/test/audits/byte-efficiency/byte-efficiency-audit-test.js @@ -228,7 +228,7 @@ describe('Byte efficiency base audit', () => { {computedCache: new Map()} ); - assert.equal(result.numericValue, 0); + assert.equal(result.numericValue, 160); }); it('should create load simulator with the specified settings', async () => { @@ -255,13 +255,13 @@ describe('Byte efficiency base audit', () => { let result = await MockAudit.audit(artifacts, {settings, computedCache}); // expect modest savings expect(result.numericValue).toBeLessThan(5000); - expect(result.numericValue).toMatchInlineSnapshot(`440`); + expect(result.numericValue).toMatchInlineSnapshot(`1220`); settings = {throttlingMethod: 'simulate', throttling: ultraSlowThrottling}; result = await MockAudit.audit(artifacts, {settings, computedCache}); // expect lots of savings expect(result.numericValue).not.toBeLessThan(5000); - expect(result.numericValue).toMatchInlineSnapshot(`5790`); + expect(result.numericValue).toMatchInlineSnapshot(`13580`); }); it('should compute savings with throughput in timespan mode', async () => { @@ -285,7 +285,7 @@ describe('Byte efficiency base audit', () => { const modestThrottling = {rttMs: 150, throughputKbps: 1000, cpuSlowdownMultiplier: 2}; const settings = {throttlingMethod: 'simulate', throttling: modestThrottling}; const result = await MockAudit.audit(artifacts, {settings, computedCache}); - expect(result.details.overallSavingsMs).toEqual(2120); + expect(result.details.overallSavingsMs).toEqual(1400); }); it('should return n/a if no network records in timespan mode', async () => { @@ -342,7 +342,7 @@ describe('Byte efficiency base audit', () => { }; const settings = {throttlingMethod: 'devtools', throttling: modestThrottling}; const result = await MockAudit.audit(artifacts, {settings, computedCache}); - expect(result.details.overallSavingsMs).toEqual(30); + expect(result.details.overallSavingsMs).toEqual(40); }); describe('#scoreForWastedMs', () => { diff --git a/core/test/audits/byte-efficiency/duplicated-javascript-test.js b/core/test/audits/byte-efficiency/duplicated-javascript-test.js index 7e7223d73c95..58ff8d83819f 100644 --- a/core/test/audits/byte-efficiency/duplicated-javascript-test.js +++ b/core/test/audits/byte-efficiency/duplicated-javascript-test.js @@ -12,8 +12,8 @@ import { readJson, } from '../../test-utils.js'; -const trace = readJson('../../fixtures/artifacts/paul/trace.json', import.meta); -const devtoolsLog = readJson('../../fixtures/artifacts/paul/devtoolslog.json', import.meta); +const trace = readJson('../../fixtures/traces/lcp-m78.json', import.meta); +const devtoolsLog = readJson('../../fixtures/traces/lcp-m78.devtools.log.json', import.meta); describe('DuplicatedJavascript computed artifact', () => { it('works (simple)', async () => { diff --git a/core/test/audits/predictive-perf-test.js b/core/test/audits/predictive-perf-test.js index 7baf37d21676..00897ac5d8bd 100644 --- a/core/test/audits/predictive-perf-test.js +++ b/core/test/audits/predictive-perf-test.js @@ -25,7 +25,7 @@ describe('Performance: predictive performance audit', () => { const context = {computedCache: new Map(), settings: {locale: 'en'}}; const output = await PredictivePerf.audit(artifacts, context); - expect(output.displayValue).toBeDisplayString('4,610 ms'); + expect(output.displayValue).toBeDisplayString('3,150 ms'); const metrics = output.details.items[0]; for (const [key, value] of Object.entries(metrics)) { metrics[key] = value === undefined ? value : Math.round(value); diff --git a/core/test/computed/tbt-impact-tasks-test.js b/core/test/computed/tbt-impact-tasks-test.js index 891b6c79c833..949091b5b2b0 100644 --- a/core/test/computed/tbt-impact-tasks-test.js +++ b/core/test/computed/tbt-impact-tasks-test.js @@ -12,8 +12,8 @@ import {createTestTrace, rootFrame} from '../create-test-trace.js'; import {networkRecordsToDevtoolsLog} from '../network-records-to-devtools-log.js'; import {MainThreadTasks} from '../../computed/main-thread-tasks.js'; -const trace = readJson('../fixtures/artifacts/paul/trace.json', import.meta); -const devtoolsLog = readJson('../fixtures/artifacts/paul/devtoolslog.json', import.meta); +const trace = readJson('../fixtures/traces/lcp-m78.json', import.meta); +const devtoolsLog = readJson('../fixtures/traces/lcp-m78.devtools.log.json', import.meta); describe('TBTImpactTasks', () => { const mainDocumentUrl = 'https://example.com'; diff --git a/core/test/lib/tracehouse/trace-processor-test.js b/core/test/lib/tracehouse/trace-processor-test.js index 940be1aa43bb..24af725eebf1 100644 --- a/core/test/lib/tracehouse/trace-processor-test.js +++ b/core/test/lib/tracehouse/trace-processor-test.js @@ -591,24 +591,24 @@ describe('TraceProcessor', () => { const trace = TraceProcessor.processTrace(lcpTrace); const navigation = TraceProcessor.processNavigation(trace); expect({ - 'firstContentfulPaintEvt.ts': navigation.firstContentfulPaintEvt.ts, - 'largestContentfulPaintEvt.ts': navigation.largestContentfulPaintEvt.ts, - 'mainFrameInfo.frameId': trace.mainFrameInfo.frameId, - 'timeOriginEvt.ts': trace.timeOriginEvt.ts, - 'timestamps.firstContentfulPaint': navigation.timestamps.firstContentfulPaint, - 'timestamps.largestContentfulPaint': navigation.timestamps.largestContentfulPaint, - 'timings.firstContentfulPaint': navigation.timings.firstContentfulPaint, - 'timings.largestContentfulPaint': navigation.timings.largestContentfulPaint, - }).toMatchInlineSnapshot(` + 'firstContentfulPaintEvt.ts': navigation.firstContentfulPaintEvt.ts, + 'largestContentfulPaintEvt.ts': navigation.largestContentfulPaintEvt.ts, + 'mainFrameInfo.frameId': trace.mainFrameInfo.frameId, + 'timeOriginEvt.ts': trace.timeOriginEvt.ts, + 'timestamps.firstContentfulPaint': navigation.timestamps.firstContentfulPaint, + 'timestamps.largestContentfulPaint': navigation.timestamps.largestContentfulPaint, + 'timings.firstContentfulPaint': navigation.timings.firstContentfulPaint, + 'timings.largestContentfulPaint': navigation.timings.largestContentfulPaint }). +toMatchInlineSnapshot(` Object { - "firstContentfulPaintEvt.ts": 713038144775, - "largestContentfulPaintEvt.ts": 713038144775, - "mainFrameInfo.frameId": "70B6647836A0A07265E532B094184D2A", - "timeOriginEvt.ts": 713037023064, - "timestamps.firstContentfulPaint": 713038144775, - "timestamps.largestContentfulPaint": 713038144775, - "timings.firstContentfulPaint": 1121.711, - "timings.largestContentfulPaint": 1121.711, + "firstContentfulPaintEvt.ts": 343577475882, + "largestContentfulPaintEvt.ts": 343577475882, + "mainFrameInfo.frameId": "C0BCFDE8809D44AE98B51BD8568EB184", + "timeOriginEvt.ts": 343577184048, + "timestamps.firstContentfulPaint": 343577475882, + "timestamps.largestContentfulPaint": 343577475882, + "timings.firstContentfulPaint": 291.834, + "timings.largestContentfulPaint": 291.834, } `); assert.ok(!navigation.lcpInvalidated);