Skip to content

Commit

Permalink
Make CLS test faster
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Nov 15, 2022
1 parent e4214a5 commit 03fc1c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/onCLS-test.js
Expand Up @@ -641,6 +641,11 @@ describe('onCLS()', async function() {
return performance.getEntriesByType('navigation')[0].activationStart;
});

// Wait until all images are loaded and rendered, then change to hidden.
await imagesPainted();
await stubVisibilityChange('hidden');


await beaconCountIs(1);
const [cls] = await getBeacons();

Expand Down

0 comments on commit 03fc1c1

Please sign in to comment.