From 4f51e19ddbb759786739574eb35aade830aca8b0 Mon Sep 17 00:00:00 2001 From: Carolina Gonzalez Date: Thu, 20 Jun 2024 10:09:08 -0400 Subject: [PATCH] fix: add wait for sentry request --- test/e2e/tests/error-reporting/sentryErrorReporter.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/tests/error-reporting/sentryErrorReporter.test.ts b/test/e2e/tests/error-reporting/sentryErrorReporter.test.ts index 0d4cc89c202..db4c08a4420 100644 --- a/test/e2e/tests/error-reporting/sentryErrorReporter.test.ts +++ b/test/e2e/tests/error-reporting/sentryErrorReporter.test.ts @@ -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)