File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
dev-packages/e2e-tests/test-applications Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { waitForInitialPageload } from './utils';
4
4
5
5
test . describe ( 'client-side errors' , ( ) => {
6
6
test ( 'captures error thrown on click' , async ( { page } ) => {
7
- await page . goto ( '/client-error' ) ;
7
+ await waitForInitialPageload ( page , { route : '/client-error' } ) ;
8
8
9
9
const errorEventPromise = waitForError ( 'sveltekit-2' , errorEvent => {
10
10
return errorEvent ?. exception ?. values ?. [ 0 ] ?. value === 'Click Error' ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { waitForTransaction } from '@sentry-internal/event-proxy-server';
18
18
*/
19
19
export async function waitForInitialPageload (
20
20
page : Page ,
21
- opts ?: { route ?: string ; parameterizedRoute ?: string ; debug : boolean } ,
21
+ opts ?: { route ?: string ; parameterizedRoute ?: string ; debug ? : boolean } ,
22
22
) {
23
23
const route = opts ?. route ?? '/' ;
24
24
const txnName = opts ?. parameterizedRoute ?? route ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { waitForInitialPageload } from '../utils';
4
4
5
5
test . describe ( 'client-side errors' , ( ) => {
6
6
test ( 'captures error thrown on click' , async ( { page } ) => {
7
- await page . goto ( '/client-error' ) ;
7
+ await waitForInitialPageload ( page , { route : '/client-error' } ) ;
8
8
9
9
const errorEventPromise = waitForError ( 'sveltekit' , errorEvent => {
10
10
return errorEvent ?. exception ?. values ?. [ 0 ] ?. value === 'Click Error' ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { waitForTransaction } from '@sentry-internal/event-proxy-server';
18
18
*/
19
19
export async function waitForInitialPageload (
20
20
page : Page ,
21
- opts ?: { route ?: string ; parameterizedRoute ?: string ; debug : boolean } ,
21
+ opts ?: { route ?: string ; parameterizedRoute ?: string ; debug ? : boolean } ,
22
22
) {
23
23
const route = opts ?. route ?? '/' ;
24
24
const txnName = opts ?. parameterizedRoute ?? route ;
You can’t perform that action at this time.
0 commit comments