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';
44
55test . describe ( 'client-side errors' , ( ) => {
66 test ( 'captures error thrown on click' , async ( { page } ) => {
7- await page . goto ( '/client-error' ) ;
7+ await waitForInitialPageload ( page , { route : '/client-error' } ) ;
88
99 const errorEventPromise = waitForError ( 'sveltekit-2' , errorEvent => {
1010 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';
1818 */
1919export async function waitForInitialPageload (
2020 page : Page ,
21- opts ?: { route ?: string ; parameterizedRoute ?: string ; debug : boolean } ,
21+ opts ?: { route ?: string ; parameterizedRoute ?: string ; debug ? : boolean } ,
2222) {
2323 const route = opts ?. route ?? '/' ;
2424 const txnName = opts ?. parameterizedRoute ?? route ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { waitForInitialPageload } from '../utils';
44
55test . describe ( 'client-side errors' , ( ) => {
66 test ( 'captures error thrown on click' , async ( { page } ) => {
7- await page . goto ( '/client-error' ) ;
7+ await waitForInitialPageload ( page , { route : '/client-error' } ) ;
88
99 const errorEventPromise = waitForError ( 'sveltekit' , errorEvent => {
1010 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';
1818 */
1919export async function waitForInitialPageload (
2020 page : Page ,
21- opts ?: { route ?: string ; parameterizedRoute ?: string ; debug : boolean } ,
21+ opts ?: { route ?: string ; parameterizedRoute ?: string ; debug ? : boolean } ,
2222) {
2323 const route = opts ?. route ?? '/' ;
2424 const txnName = opts ?. parameterizedRoute ?? route ;
You can’t perform that action at this time.
0 commit comments