Skip to content

Commit b739033

Browse files
committed
test: Skip some flaky tests
1 parent 3045390 commit b739033

File tree

2 files changed

+11
-10
lines changed
  • packages/browser-integration-tests/suites/replay

2 files changed

+11
-10
lines changed

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)