Skip to content

Commit

Permalink
fix: add wait for sentry request
Browse files Browse the repository at this point in the history
  • Loading branch information
cngonzalez committed Jun 20, 2024
1 parent de1fd92 commit 4f51e19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/tests/error-reporting/sentryErrorReporter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ test('Sentry session should begin if in an updating studio', async ({page, baseU
})

//we're not performing any action, so add a small wait
await page.goto(baseURL ?? '', {waitUntil: 'networkidle'})
await page.goto(baseURL ?? '')
await page.waitForTimeout(5000)

if (SANITY_E2E_IS_AUTO_UPDATING) {
expect(apiCalled).toBe(true)
Expand Down

0 comments on commit 4f51e19

Please sign in to comment.