Skip to content

Commit

Permalink
Add another await
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Apr 5, 2024
1 parent d0bb1b1 commit ed8d4f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/onCLS-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,15 @@ describe('onCLS()', async function () {
if (!browserSupportsCLS) this.skip();

await navigateTo('/test/cls?hidden=1');
// Wait for a frame to be painted.
await nextFrame();

await stubForwardBack();

// Wait for a frame to be painted.
await nextFrame();

// clear any beacons from page load that overran past forwardback
// clear any beacons from page load.
await clearBeacons();

await triggerLayoutShift();
Expand Down

0 comments on commit ed8d4f4

Please sign in to comment.