Skip to content

Commit e947e4a

Browse files
Connor ClarkDevtools-frontend LUCI CQ
authored andcommitted
Fix failing test from conflicting changes in last two commits
Bug: none Change-Id: I46cff341094f8854f403038d98109758ae0c3e52 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6714943 Auto-Submit: Connor Clark <[email protected]> Reviewed-by: Paul Irish <[email protected]> Commit-Queue: Connor Clark <[email protected]>
1 parent c8999ad commit e947e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ We can break this time down into the 2 phases that combine to make the LCP time:
102102
const {parsedTrace, insights} = await TraceLoader.traceEngine(this, 'dpr.json.gz');
103103
assert.isOk(insights);
104104
const firstNav = getFirstOrError(parsedTrace.Meta.navigationsByNavigationId.values());
105+
const insightSet = getInsightSetOrError(insights, firstNav);
105106
const insight = getInsightOrError('LCPBreakdown', insights, firstNav);
106107

107-
const formatter = new PerformanceInsightFormatter(new ActiveInsight(insight, parsedTrace));
108+
const formatter = new PerformanceInsightFormatter(new ActiveInsight(insight, insightSet.bounds, parsedTrace));
108109
const output = formatter.formatInsight().split('Timings:')[0];
109110
const expected = `## Insight Title: LCP breakdown
110111

0 commit comments

Comments
 (0)