diff --git a/packages/browser-integration-tests/scripts/detectFlakyTests.ts b/packages/browser-integration-tests/scripts/detectFlakyTests.ts index 12d83f30af5b..9fcf2baea7f9 100644 --- a/packages/browser-integration-tests/scripts/detectFlakyTests.ts +++ b/packages/browser-integration-tests/scripts/detectFlakyTests.ts @@ -1,7 +1,6 @@ import * as glob from 'glob'; import * as path from 'path'; import * as childProcess from 'child_process'; -import { promisify } from 'util'; async function run(): Promise { let testPaths: string[] = []; diff --git a/packages/browser-integration-tests/suites/replay/eventBufferError/test.ts b/packages/browser-integration-tests/suites/replay/eventBufferError/test.ts index 10e9ad6f7196..954d257bf202 100644 --- a/packages/browser-integration-tests/suites/replay/eventBufferError/test.ts +++ b/packages/browser-integration-tests/suites/replay/eventBufferError/test.ts @@ -5,6 +5,7 @@ import { envelopeRequestParser } from '../../../utils/helpers'; import { getDecompressedRecordingEvents, getReplaySnapshot, + isCustomSnapshot, isReplayEvent, REPLAY_DEFAULT_FLUSH_MAX_DELAY, shouldSkipReplayTest, @@ -41,8 +42,8 @@ sentryTest( // We only want to count replays here if (event && isReplayEvent(event)) { const events = getDecompressedRecordingEvents(route.request()); - // this makes sure we ignore e.g. mouse move events which can otherwise lead to flakes - if (events.length > 0) { + // Make sure to not count mouse moves or performance spans + if (events.filter(event => !isCustomSnapshot(event) || event.data.tag !== 'performanceSpan').length > 0) { called++; } } diff --git a/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/template.html b/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/template.html index 331a03a58b92..bec4cdcb8e94 100644 --- a/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/template.html +++ b/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/template.html @@ -4,9 +4,10 @@ - - - + + + +