Skip to content

Commit 49cdb28

Browse files
authored
test(e2e): Log polled events in e2e tests (#5946)
1 parent 7e03836 commit 49cdb28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/e2e-tests/test-applications/standard-frontend-react/tests/behaviour-test.spec.ts

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ test('Sends an exception to Sentry', async ({ page }) => {
1717
const exceptionIdHandle = await page.waitForFunction(() => window.capturedExceptionId);
1818
const exceptionEventId = await exceptionIdHandle.jsonValue();
1919

20+
console.log(`Polling for error eventId: ${exceptionEventId}`);
21+
2022
await expect
2123
.poll(
2224
async () => {
@@ -63,6 +65,8 @@ test('Sends a pageload transaction to Sentry', async ({ page }) => {
6365

6466
let hadPageLoadTransaction = false;
6567

68+
console.log(`Polling for transaction eventIds: ${JSON.stringify(recordedTransactionEventIds)}`);
69+
6670
await Promise.all(
6771
recordedTransactionEventIds.map(async transactionEventId => {
6872
await expect
@@ -126,6 +130,8 @@ test('Sends a navigation transaction to Sentry', async ({ page }) => {
126130

127131
let hadPageNavigationTransaction = false;
128132

133+
console.log(`Polling for transaction eventIds: ${JSON.stringify(recordedTransactionEventIds)}`);
134+
129135
await Promise.all(
130136
recordedTransactionEventIds.map(async transactionEventId => {
131137
await expect

0 commit comments

Comments
 (0)