File tree Expand file tree Collapse file tree 4 files changed +6
-60
lines changed
dev-packages/e2e-tests/test-applications/nextjs-14
app/generation-functions/with-redirect
packages/remix/test/integration/test/server/instrumentation Expand file tree Collapse file tree 4 files changed +6
-60
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -108,20 +108,3 @@ test('Should send a transaction and an error event for a faulty generateViewport
108
108
109
109
expect ( errorEvent . transaction ) . toBe ( 'Page.generateViewport (/generation-functions)' ) ;
110
110
} ) ;
111
-
112
- test ( 'Should send a transaction event with correct status for a generateMetadata() function invocation with redirect()' , async ( {
113
- page,
114
- } ) => {
115
- const testTitle = 'redirect-foobar' ;
116
-
117
- const transactionPromise = waitForTransaction ( 'nextjs-14' , async transactionEvent => {
118
- return (
119
- transactionEvent . contexts ?. trace ?. data ?. [ 'http.target' ] ===
120
- `/generation-functions/with-redirect?metadataTitle=${ testTitle } `
121
- ) ;
122
- } ) ;
123
-
124
- await page . goto ( `/generation-functions/with-redirect?metadataTitle=${ testTitle } ` ) ;
125
-
126
- expect ( ( await transactionPromise ) . contexts ?. trace ?. status ) . toBe ( 'ok' ) ;
127
- } ) ;
Original file line number Diff line number Diff line change @@ -152,28 +152,15 @@ describe('Remix API Actions', () => {
152
152
153
153
const envelopes = await env . getMultipleEnvelopeRequest ( {
154
154
url,
155
- count : 3 ,
155
+ count : 2 ,
156
156
method : 'post' ,
157
157
envelopeType : [ 'transaction' , 'event' ] ,
158
158
} ) ;
159
159
160
- const [ transaction_1 , transaction_2 ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'transaction' ) ;
160
+ const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'transaction' ) ;
161
161
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'event' ) ;
162
162
163
- assertSentryTransaction ( transaction_1 [ 2 ] , {
164
- contexts : {
165
- trace : {
166
- op : 'http.server' ,
167
- status : 'ok' ,
168
- data : {
169
- 'http.response.status_code' : 302 ,
170
- } ,
171
- } ,
172
- } ,
173
- transaction : `POST action-json-response/:id` ,
174
- } ) ;
175
-
176
- assertSentryTransaction ( transaction_2 [ 2 ] , {
163
+ assertSentryTransaction ( transaction [ 2 ] , {
177
164
contexts : {
178
165
trace : {
179
166
op : 'http.server' ,
Original file line number Diff line number Diff line change @@ -123,27 +123,14 @@ describe('Remix API Loaders', () => {
123
123
124
124
const envelopes = await env . getMultipleEnvelopeRequest ( {
125
125
url,
126
- count : 3 ,
126
+ count : 2 ,
127
127
envelopeType : [ 'transaction' , 'event' ] ,
128
128
} ) ;
129
129
130
- const [ transaction_1 , transaction_2 ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'transaction' ) ;
130
+ const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'transaction' ) ;
131
131
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] . type === 'event' ) ;
132
132
133
- assertSentryTransaction ( transaction_1 [ 2 ] , {
134
- contexts : {
135
- trace : {
136
- op : 'http.server' ,
137
- status : 'ok' ,
138
- data : {
139
- 'http.response.status_code' : 302 ,
140
- } ,
141
- } ,
142
- } ,
143
- transaction : `GET loader-json-response/:id` ,
144
- } ) ;
145
-
146
- assertSentryTransaction ( transaction_2 [ 2 ] , {
133
+ assertSentryTransaction ( transaction [ 2 ] , {
147
134
contexts : {
148
135
trace : {
149
136
op : 'http.server' ,
You can’t perform that action at this time.
0 commit comments