Skip to content

Commit

Permalink
fix flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinL10 committed Jul 8, 2024
1 parent 10091d8 commit 66f8f7d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ sentryTest(

await page.goto(url);

await new Promise(resolve => setTimeout(resolve, 200));

const eventData = await promise;

const uiSpans = eventData.spans?.filter(({ op }) => op?.startsWith('ui.long-animation-frame'));
Expand Down Expand Up @@ -76,6 +78,8 @@ sentryTest(
// trigger long animation frame function
await page.getByRole('button').click();

await new Promise(resolve => setTimeout(resolve, 200));

const eventData = await promise;

const uiSpans = eventData.spans?.filter(({ op }) => op?.startsWith('ui.long-animation-frame'));
Expand Down

0 comments on commit 66f8f7d

Please sign in to comment.