Skip to content

Commit 7a79cb1

Browse files
committed
debug flake
1 parent cdf9100 commit 7a79cb1

File tree

1 file changed

+9
-4
lines changed
  • dev-packages/browser-integration-tests/suites/feedback/captureFeedbackAndReplay/hasSampling

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,25 @@ sentryTest('should capture feedback (@sentry-internal/feedback import)', async (
3636

3737
const url = await getLocalTestPath({ testDir: __dirname });
3838

39-
const [,,replayReq1] = await Promise.all([page.goto(url), page.getByText('Report a Bug').click(), reqPromise0]);
39+
const [,,replayReq0] = await Promise.all([page.goto(url), page.getByText('Report a Bug').click(), reqPromise0]);
4040

4141
await page.locator('[name="name"]').fill('Jane Doe');
4242
await page.locator('[name="email"]').fill('[email protected]');
4343
await page.locator('[name="message"]').fill('my example feedback');
4444
await page.getByLabel('Send Bug Report').click();
4545

46-
const [feedbackResp, replayReq2] = await Promise.all([feedbackRequestPromise, reqPromise1]);
46+
const [feedbackResp, replayReq1] = await Promise.all([feedbackRequestPromise, reqPromise1]);
4747

4848
const feedbackEvent = envelopeRequestParser(feedbackResp.request());
49-
const replayEvent = getReplayEvent(replayReq1);
49+
const replayEvent = getReplayEvent(replayReq0);
5050
// Feedback breadcrumb is on second segment because we flush when "Report a Bug" is clicked
5151
// And then the breadcrumb is sent when feedback form is submitted
52-
const { breadcrumbs } = getCustomRecordingEvents(replayReq2);
52+
const { breadcrumbs } = getCustomRecordingEvents(replayReq1);
53+
54+
55+
if (breadcrumbs.length === 0) {
56+
console.log(replayReq0, replayReq1);
57+
}
5358

5459
expect(breadcrumbs).toEqual(
5560
expect.arrayContaining([

0 commit comments

Comments
 (0)