From 519d4b9216bd52d54bffc86a5d9c4f75e57195b6 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 22 Jun 2023 15:51:23 +0200 Subject: [PATCH] skip test on FF --- .../suites/public-api/captureException/errorEvent/test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/browser-integration-tests/suites/public-api/captureException/errorEvent/test.ts b/packages/browser-integration-tests/suites/public-api/captureException/errorEvent/test.ts index 9c09ba374e78..dbcaaf24a1cf 100644 --- a/packages/browser-integration-tests/suites/public-api/captureException/errorEvent/test.ts +++ b/packages/browser-integration-tests/suites/public-api/captureException/errorEvent/test.ts @@ -4,7 +4,11 @@ import type { Event } from '@sentry/types'; import { sentryTest } from '../../../../utils/fixtures'; import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers'; -sentryTest('should capture an ErrorEvent', async ({ getLocalTestPath, page }) => { +sentryTest('should capture an ErrorEvent', async ({ getLocalTestPath, page, browserName }) => { + // On Firefox, the ErrorEvent has the `error` property and thus is handled separately + if (browserName === 'firefox') { + sentryTest.skip(); + } const url = await getLocalTestPath({ testDir: __dirname }); const eventData = await getFirstSentryEnvelopeRequest(page, url);