import { expect } from '@playwright/test' ; import { sentryTest } from '../../../../utils/fixtures' ; import { getSentryRequest } from '../../../../utils/helpers' ; sentryTest ( 'should record an extras object' , async ( { getLocalTestPath , page } ) => { const url = await getLocalTestPath ( { testDir : __dirname } ) ; const eventData = await getSentryRequest ( page , url ) ; expect ( eventData . message ) . toBe ( 'multiple_extras' ) ; expect ( eventData . extra ) . toMatchObject ( { extra_1 : [ 1 , [ 'foo' ] , 'bar' ] , extra_2 : 'baz' , extra_3 : 3.141592653589793 , extra_4 : { qux : { quux : false } } , } ) ; } ) ;