Skip to content

Commit

Permalink
Add up the results
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 23, 2023
1 parent 502040c commit c08e5d3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/e2e-tests/specs/performance/post-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,16 @@ describe( 'Post Editor Performance', () => {
}
await page.tracing.stop();
traceResults = JSON.parse( readFile( traceFile ) );
const [ focusEvents ] = getSelectionEventDurations( traceResults );
results.focus = focusEvents;
const [ focusEvents, focusInEvents, selectionChangeEvents ] =
getSelectionEventDurations( traceResults );

for ( let j = 0; j < focusEvents.length; j++ ) {
results.focus.push(
focusEvents[ j ] +
focusInEvents[ j ] +
selectionChangeEvents[ j ]
);
}
} );

it( 'Opening persistent list view', async () => {
Expand Down

0 comments on commit c08e5d3

Please sign in to comment.