Skip to content

Commit 901acb9

Browse files
authored
test(replay): Skip flaky test in firefox (#7496)
1 parent c271767 commit 901acb9

File tree

3 files changed

+14
-12
lines changed
  • packages/browser-integration-tests/suites/replay

3 files changed

+14
-12
lines changed

packages/browser-integration-tests/suites/replay/errors/errorMode/test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import {
1717

1818
sentryTest(
1919
'[error-mode] should start recording and switch to session mode once an error is thrown',
20-
async ({ getLocalTestPath, page }) => {
21-
if (shouldSkipReplayTest()) {
20+
async ({ getLocalTestPath, page, browserName }) => {
21+
// This was sometimes flaky on firefox/webkit, so skipping for now
22+
if (shouldSkipReplayTest() || ['firefox', 'webkit'].includes(browserName)) {
2223
sentryTest.skip();
2324
}
2425

packages/browser-integration-tests/suites/replay/errors/errorsInSession/test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {
1313
sentryTest(
1414
'[session-mode] replay event should contain an error id of an error that occurred during session recording',
1515
async ({ getLocalTestPath, page, browserName, forceFlushReplay }) => {
16-
// TODO(replay): This is flakey on firefox where clicks are flakey
17-
if (shouldSkipReplayTest() || ['firefox'].includes(browserName)) {
16+
// Skipping this in firefox/webkit because it is flakey there
17+
if (shouldSkipReplayTest() || ['firefox', 'webkit'].includes(browserName)) {
1818
sentryTest.skip();
1919
}
2020

@@ -86,8 +86,9 @@ sentryTest(
8686

8787
sentryTest(
8888
'[session-mode] replay event should not contain an error id of a dropped error while recording',
89-
async ({ getLocalTestPath, page, forceFlushReplay }) => {
90-
if (shouldSkipReplayTest()) {
89+
async ({ getLocalTestPath, page, forceFlushReplay, browserName }) => {
90+
// Skipping this in firefox/webkit because it is flakey there
91+
if (shouldSkipReplayTest() || ['firefox', 'webkit'].includes(browserName)) {
9192
sentryTest.skip();
9293
}
9394

packages/browser-integration-tests/suites/replay/requests/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { expectedFetchPerformanceSpan, expectedXHRPerformanceSpan } from '../../
55
import { getReplayRecordingContent, shouldSkipReplayTest, waitForReplayRequest } from '../../../utils/replayHelpers';
66

77
sentryTest('replay recording should contain fetch request span', async ({ getLocalTestPath, page, browserName }) => {
8-
// For some reason, observing and waiting for requests in firefox is extremely flaky.
9-
// We therefore skip this test for firefox and only test on chromium/webkit.
8+
// For some reason, observing and waiting for requests in firefox/webkit is extremely flaky.
9+
// We therefore skip this test for firefox and only test on chromium.
1010
// Possibly related: https://github.com/microsoft/playwright/issues/11390
11-
if (shouldSkipReplayTest() || browserName === 'firefox') {
11+
if (shouldSkipReplayTest() || ['firefox', 'webkit'].includes(browserName)) {
1212
sentryTest.skip();
1313
}
1414

@@ -48,9 +48,9 @@ sentryTest('replay recording should contain fetch request span', async ({ getLoc
4848
});
4949

5050
sentryTest('replay recording should contain XHR request span', async ({ getLocalTestPath, page, browserName }) => {
51-
// For some reason, observing and waiting for requests in firefox is extremely flaky.
52-
// We therefore skip this test for firefox and only test on chromium/webkit.
53-
if (shouldSkipReplayTest() || browserName === 'firefox') {
51+
// For some reason, observing and waiting for requests in firefox/webkit is extremely flaky.
52+
// We therefore skip this test for firefox and only test on chromium.
53+
if (shouldSkipReplayTest() || ['firefox', 'webkit'].includes(browserName)) {
5454
sentryTest.skip();
5555
}
5656

0 commit comments

Comments
 (0)