From 79a3fa0054a0c626dba7ba5ae6e4551c0c031459 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Wed, 12 Jul 2023 11:49:35 +0200 Subject: [PATCH] debug test... --- .../test-applications/react-create-hash-router/src/index.tsx | 2 ++ .../react-create-hash-router/tests/behaviour-test.spec.ts | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx b/packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx index 70ec5a8b8bdb..294daeba875f 100644 --- a/packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx +++ b/packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx @@ -37,6 +37,8 @@ Sentry.init({ // Always capture replays, so we can test this properly replaysSessionSampleRate: 1.0, replaysOnErrorSampleRate: 0.0, + + debug: true, }); Object.defineProperty(window, 'sentryReplayId', { diff --git a/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts b/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts index a4dcfc895f08..6b8a85d7c94f 100644 --- a/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts +++ b/packages/e2e-tests/test-applications/react-create-hash-router/tests/behaviour-test.spec.ts @@ -9,6 +9,8 @@ const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG; const sentryTestProject = process.env.E2E_TEST_SENTRY_TEST_PROJECT; test('Sends an exception to Sentry', async ({ page }) => { + page.on('console', msg => console.log(msg.text())); + await page.goto('/'); const exceptionButton = page.locator('id=exception-button'); @@ -18,9 +20,6 @@ test('Sends an exception to Sentry', async ({ page }) => { const exceptionEventId = await exceptionIdHandle.jsonValue(); console.log(`Polling for error eventId: ${exceptionEventId}`); - console.log( - `Fetching from URL https://sentry.io/api/0/projects/${sentryTestOrgSlug}/${sentryTestProject}/events/${exceptionEventId}/`, - ); await expect .poll(