File tree Expand file tree Collapse file tree 7 files changed +105
-0
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 7 files changed +105
-0
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 ( ) ;
You can’t perform that action at this time.
0 commit comments