@@ -385,40 +385,3 @@ test('captures one navigation transaction per redirect', async ({ page }) => {
385385 } ,
386386 } ) ;
387387} ) ;
388-
389- test ( 'captures remote function call spans' , async ( { page } ) => {
390- const clientTxnEventPromise = waitForTransaction ( 'sveltekit-2-kit-tracing' , txnEvent => {
391- return txnEvent ?. transaction === '/remote-functions' ;
392- } ) ;
393-
394- const serverTxnEventPromise = waitForTransaction ( 'sveltekit-2-kit-tracing' , txnEvent => {
395- return txnEvent ?. transaction === 'GET /remote-functions' ;
396- } ) ;
397-
398- const remoteFunctionTracePromise = waitForTransaction ( 'sveltekit-2-kit-tracing' , txnEvent => {
399- return txnEvent ?. transaction === 'sveltekit.handle.root' ;
400- } ) ;
401-
402- await waitForInitialPageload ( page , { route : '/remote-functions' } ) ;
403-
404- const [ clientTxnEvent , serverTxnEvent , remoteFunctionEvent ] = await Promise . all ( [
405- clientTxnEventPromise ,
406- serverTxnEventPromise ,
407- remoteFunctionTracePromise ,
408- ] ) ;
409-
410- const clientRemoteCallSpans = clientTxnEvent . spans ?. filter ( s => s . op === 'http.client' ) ;
411-
412- // only the `getLikes()` function is called from the client
413- // `getPosts()` seems to have been only called on the server
414- expect ( clientRemoteCallSpans ) . toHaveLength ( 1 ) ;
415-
416- const clientRemoteCallSpan = clientRemoteCallSpans && clientRemoteCallSpans [ 0 ] ;
417- expect ( clientRemoteCallSpan ) . toMatchObject ( {
418- op : 'http.client' ,
419- description : expect . stringMatching ( / ^ G E T \/ _ a p p \/ r e m o t e \/ .+ \/ g e t L i k e s $ / ) ,
420- origin : 'auto.http.browser' ,
421- } ) ;
422-
423- console . log ( JSON . stringify ( remoteFunctionEvent , null , 2 ) ) ;
424- } ) ;
0 commit comments