Skip to content

Commit 4069cf5

Browse files
committed
is there a 3rd request?
1 parent e28d9b7 commit 4069cf5

File tree

1 file changed

+3
-1
lines changed
  • dev-packages/browser-integration-tests/suites/feedback/captureFeedbackAndReplay/hasSampling

1 file changed

+3
-1
lines changed

dev-packages/browser-integration-tests/suites/feedback/captureFeedbackAndReplay/hasSampling/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ import { sentryTest } from '../../../../utils/fixtures';
44
import { envelopeRequestParser, getEnvelopeType } from '../../../../utils/helpers';
55
import { getCustomRecordingEvents, getReplayEvent, waitForReplayRequest } from '../../../../utils/replayHelpers';
66

7-
sentryTest('should capture feedback (@sentry-internal/feedback import)', async ({ getLocalTestPath, page }) => {
7+
sentryTest('should capture feedback (@sentry-internal/feedback import)', async ({ forceFlushReplay, getLocalTestPath, page }) => {
88
if (process.env.PW_BUNDLE) {
99
sentryTest.skip();
1010
}
1111

1212
const reqPromise0 = waitForReplayRequest(page, 0);
1313
const reqPromise1 = waitForReplayRequest(page, 1);
14+
const reqPromise2 = waitForReplayRequest(page, 2);
1415
const feedbackRequestPromise = page.waitForResponse(res => {
1516
const req = res.request();
1617

@@ -54,6 +55,7 @@ sentryTest('should capture feedback (@sentry-internal/feedback import)', async (
5455
if (breadcrumbs.length === 0) {
5556
console.log(getReplayEvent(replayReq0), getReplayEvent(replayReq1));
5657
console.log(getCustomRecordingEvents(replayReq0), getCustomRecordingEvents(replayReq1));
58+
console.log(getCustomRecordingEvents(await reqPromise2));
5759
}
5860

5961
expect(breadcrumbs).toEqual(

0 commit comments

Comments
 (0)