Skip to content

Commit d157380

Browse files
committed
Update E2E test assertions
1 parent 60c0eb8 commit d157380

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

dev-packages/e2e-tests/test-applications/create-next-app/tests/client-transactions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ test('Sends a pageload transaction to Sentry', async ({ page }) => {
2424
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
2525
op: 'pageload',
2626
origin: 'auto.pageload.nextjs.pages_router_instrumentation',
27+
status: 'ok',
2728
data: expect.objectContaining({
2829
'sentry.idle_span_finish_reason': 'idleTimeout',
2930
'sentry.op': 'pageload',
@@ -69,6 +70,7 @@ test('captures a navigation transaction to Sentry', async ({ page }) => {
6970
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
7071
op: 'navigation',
7172
origin: 'auto.navigation.nextjs.pages_router_instrumentation',
73+
status: 'ok',
7274
data: expect.objectContaining({
7375
'sentry.idle_span_finish_reason': 'idleTimeout',
7476
'sentry.op': 'navigation',

dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/transactions.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test('Sends a pageload transaction', async ({ page }) => {
3333
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
3434
op: 'pageload',
3535
origin: 'auto.pageload.nextjs.app_router_instrumentation',
36+
status: 'ok',
3637
data: expect.objectContaining({
3738
'sentry.op': 'pageload',
3839
'sentry.origin': 'auto.pageload.nextjs.app_router_instrumentation',

dev-packages/e2e-tests/test-applications/nextjs-pages-dir/tests/transactions.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test('Sends a pageload transaction', async ({ page }) => {
3333
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
3434
op: 'pageload',
3535
origin: 'auto.pageload.nextjs.pages_router_instrumentation',
36+
status: 'ok',
3637
data: expect.objectContaining({
3738
'sentry.op': 'pageload',
3839
'sentry.origin': 'auto.pageload.nextjs.pages_router_instrumentation',

dev-packages/e2e-tests/test-applications/react-create-browser-router/tests/transactions.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ test('Captures a pageload transaction', async ({ page }) => {
3636
span_id: expect.stringMatching(/[a-f0-9]{16}/),
3737
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
3838
origin: 'auto.pageload.react.reactrouter_v6',
39+
status: 'ok',
3940
}),
4041
);
4142
});
@@ -72,6 +73,7 @@ test('Captures a navigation transaction', async ({ page }) => {
7273
span_id: expect.stringMatching(/[a-f0-9]{16}/),
7374
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
7475
origin: 'auto.navigation.react.reactrouter_v6',
76+
status: 'ok',
7577
});
7678

7779
expect(transactionEvent).toEqual(
@@ -107,6 +109,7 @@ test('Captures a lazy pageload transaction', async ({ page }) => {
107109
span_id: expect.stringMatching(/[a-f0-9]{16}/),
108110
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
109111
origin: 'auto.pageload.react.reactrouter_v6',
112+
status: 'ok',
110113
});
111114

112115
expect(transactionEvent).toEqual(
@@ -169,6 +172,7 @@ test('Captures a lazy navigation transaction', async ({ page }) => {
169172
span_id: expect.stringMatching(/[a-f0-9]{16}/),
170173
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
171174
origin: 'auto.navigation.react.reactrouter_v6',
175+
status: 'ok',
172176
});
173177

174178
expect(transactionEvent).toEqual(

dev-packages/e2e-tests/test-applications/react-create-hash-router/tests/transactions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ test('Captures a pageload transaction', async ({ page }) => {
3131
span_id: expect.stringMatching(/[a-f0-9]{16}/),
3232
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
3333
origin: 'auto.pageload.react.reactrouter_v6',
34+
status: 'ok',
3435
});
3536

3637
expect(transactionEvent).toEqual(
@@ -136,6 +137,7 @@ test('Captures a navigation transaction', async ({ page }) => {
136137
span_id: expect.stringMatching(/[a-f0-9]{16}/),
137138
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
138139
origin: 'auto.navigation.react.reactrouter_v6',
140+
status: 'ok',
139141
});
140142

141143
expect(transactionEvent).toEqual(

dev-packages/e2e-tests/test-applications/react-create-memory-router/tests/transactions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test('Captures a pageload transaction', async ({ page }) => {
3333
span_id: expect.stringMatching(/[a-f0-9]{16}/),
3434
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
3535
origin: 'auto.pageload.react.reactrouter_v6',
36+
status: 'ok',
3637
}),
3738
);
3839
});
@@ -69,6 +70,7 @@ test('Captures a navigation transaction', async ({ page }) => {
6970
span_id: expect.stringMatching(/[a-f0-9]{16}/),
7071
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
7172
origin: 'auto.navigation.react.reactrouter_v6',
73+
status: 'ok',
7274
});
7375

7476
expect(transactionEvent).toEqual(

0 commit comments

Comments
 (0)