File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
dev-packages/e2e-tests/test-applications/default-browser Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -859,6 +859,7 @@ jobs:
859
859
' create-remix-app-express' ,
860
860
' create-remix-app-express-legacy' ,
861
861
' create-remix-app-express-vite-dev' ,
862
+ ' default-browser' ,
862
863
' node-express-esm-loader' ,
863
864
' node-express-esm-preload' ,
864
865
' node-express-esm-without-loader' ,
Original file line number Diff line number Diff line change 1
- import * as Sentry from '@sentry/react ' ;
1
+ import * as Sentry from '@sentry/browser ' ;
2
2
3
3
Sentry . init ( {
4
- release : 'e2e-test' ,
5
4
dsn : process . env . E2E_TEST_DSN ,
6
- tunnel : 'http://localhost:3031' ,
7
5
integrations : [ Sentry . browserTracingIntegration ( ) ] ,
6
+ tracesSampleRate : 1.0 ,
7
+ release : 'e2e-test' ,
8
+ environment : 'qa' ,
9
+ tunnel : 'http://localhost:3031' ,
8
10
} ) ;
9
11
10
12
document . getElementById ( 'exception-button' ) . addEventListener ( 'click' , ( ) => {
Original file line number Diff line number Diff line change 1
1
import { expect , test } from '@playwright/test' ;
2
2
import { waitForError } from '@sentry-internal/test-utils' ;
3
3
4
- test ( 'Should send correct error event ' , async ( { page } ) => {
4
+ test ( 'captures an error' , async ( { page } ) => {
5
5
const errorEventPromise = waitForError ( 'default-browser' , event => {
6
6
return ! event . type && event . exception ?. values ?. [ 0 ] ?. value === 'I am an error!' ;
7
7
} ) ;
You can’t perform that action at this time.
0 commit comments