File tree Expand file tree Collapse file tree 8 files changed +110
-2
lines changed
dev-packages/e2e-tests/test-applications
create-remix-app-express/tests
create-remix-app-express-legacy/tests
create-remix-app-express-vite-dev/tests
create-remix-app-legacy/tests
create-remix-app-v2/tests
create-remix-app-v2-legacy/tests Expand file tree Collapse file tree 8 files changed +110
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app-express-legacy' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'routes/user.$id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends form data with action span to Sentry' , async ( { page } ) => {
7
22
await page . goto ( '/action-formdata' ) ;
8
23
Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app-express-vite-dev' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'GET user/:id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends two linked transactions (server & client) to Sentry' , async ( { page } ) => {
7
22
// We use this to identify the transactions
8
23
const testTag = uuid4 ( ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app-express' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'GET user/:id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends form data with action span' , async ( { page } ) => {
7
22
await page . goto ( '/action-formdata' ) ;
8
23
Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app-legacy' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'routes/user.$id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends two linked transactions (server & client) to Sentry' , async ( { page } ) => {
7
22
// We use this to identify the transactions
8
23
const testTag = uuid4 ( ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app-v2-legacy' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'routes/user.$id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends two linked transactions (server & client) to Sentry' , async ( { page } ) => {
7
22
// We use this to identify the transactions
8
23
const testTag = uuid4 ( ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app-v2' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'GET user/:id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends two linked transactions (server & client) to Sentry' , async ( { page } ) => {
7
22
// We use this to identify the transactions
8
23
const testTag = uuid4 ( ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,21 @@ import { uuid4 } from '@sentry/utils';
3
3
4
4
import { waitForTransaction } from '@sentry-internal/test-utils' ;
5
5
6
+ test . describe . configure ( { mode : 'serial' } ) ;
7
+
8
+ test ( 'Sends parameterized transaction name to Sentry' , async ( { page } ) => {
9
+ const transactionPromise = waitForTransaction ( 'create-remix-app' , transactionEvent => {
10
+ return transactionEvent . contexts ?. trace ?. op === 'http.server' ;
11
+ } ) ;
12
+
13
+ await page . goto ( '/user/123' ) ;
14
+
15
+ const transaction = await transactionPromise ;
16
+
17
+ expect ( transaction ) . toBeDefined ( ) ;
18
+ expect ( transaction . transaction ) . toBe ( 'GET user/:id' ) ;
19
+ } ) ;
20
+
6
21
test ( 'Sends two linked transactions (server & client) to Sentry' , async ( { page } ) => {
7
22
// We use this to identify the transactions
8
23
const testTag = uuid4 ( ) ;
Original file line number Diff line number Diff line change 98
98
"test:integration:otel" : " export USE_OTEL=1 && run-s test:integration:v1 test:integration:v2" ,
99
99
"test:integration:legacy" : " export USE_OTEL=0 && run-s test:integration:v1 test:integration:v2" ,
100
100
"test:integration:v1" : " run-s test:integration:clean test:integration:prepare test:integration:client test:integration:server" ,
101
- "test:integration:v2" : " export REMIX_VERSION=2 && run-s test:integration:v1" ,
102
- "test:integration:ci" : " run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server" ,
101
+ "test:integration:v2" : " export REMIX_VERSION=2 && yarn test:integration:v1" ,
102
+ "test:integration:ci" : " run-s test:integration:ci:otel test:integration:ci:legacy" ,
103
+ "test:integration:ci:otel" : " USE_OTEL=1 yarn test:integration:ci:common" ,
104
+ "test:integration:ci:legacy" : " USE_OTEL=0 yarn test:integration:ci:common" ,
105
+ "test:integration:ci:common" : " run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server" ,
103
106
"test:integration:prepare" : " (cd test/integration && yarn install)" ,
104
107
"test:integration:clean" : " (cd test/integration && rimraf .cache node_modules build)" ,
105
108
"test:integration:client" : " yarn playwright install-deps && yarn playwright test test/integration/test/client/ --project='chromium'" ,
You can’t perform that action at this time.
0 commit comments