From d836dfcf857ef7e6e944f7f4b362ef151666b832 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Wed, 29 Nov 2023 15:02:46 -0800 Subject: [PATCH 1/2] test: lower bootup-time threshold for api-test-pptr.js --- core/test/scenarios/api-test-pptr.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/test/scenarios/api-test-pptr.js b/core/test/scenarios/api-test-pptr.js index 99c29390f228..0eb5189bdb03 100644 --- a/core/test/scenarios/api-test-pptr.js +++ b/core/test/scenarios/api-test-pptr.js @@ -64,7 +64,14 @@ describe('Individual modes API', function() { }); it('should compute ConsoleMessage results across a span of time', async () => { - const run = await api.startTimespan(state.page); + const run = await api.startTimespan(state.page, { + config: { + extends: 'lighthouse:default', + audits: [ + {path: 'bootup-time', options: {thresholdInMs: 10}}, + ], + } + }); await setupTestPage(); From 086d59aa4013a698563102104dad9e87fc52711a Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Wed, 29 Nov 2023 15:04:59 -0800 Subject: [PATCH 2/2] lint --- core/test/scenarios/api-test-pptr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/test/scenarios/api-test-pptr.js b/core/test/scenarios/api-test-pptr.js index 0eb5189bdb03..0ede4f78ef2d 100644 --- a/core/test/scenarios/api-test-pptr.js +++ b/core/test/scenarios/api-test-pptr.js @@ -70,7 +70,7 @@ describe('Individual modes API', function() { audits: [ {path: 'bootup-time', options: {thresholdInMs: 10}}, ], - } + }, }); await setupTestPage();