import { expect } from '@playwright/test' ; import { sentryTest } from '../../../../utils/fixtures' ; import { getSentryRequest } from '../../../../utils/helpers' ; sentryTest ( 'should normalize non-serializable context' , async ( { getLocalTestPath , page } ) => { const url = await getLocalTestPath ( { testDir : __dirname } ) ; const eventData = await getSentryRequest ( page , url ) ; expect ( eventData . contexts ?. non_serializable ) . toMatchObject ( { } ) ; expect ( eventData . message ) . toBe ( 'non_serializable' ) ; } ) ;