File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/integration-tests/suites/replay/privacyInputMaskAll Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,16 @@ sentryTest(
4040
4141 const text = 'test' ;
4242
43+ page . on ( 'console' , message => console . log ( message . text ( ) ) )
4344 await page . locator ( '#input' ) . type ( text ) ;
45+ console . log ( 'input value: ' , await page . locator ( '#input' ) . inputValue ( ) ) ;
46+ console . log ( 'before force flush' , new Date ( ) . getTime ( ) )
4447 await forceFlushReplay ( ) ;
45- const snapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) . filter ( isInputMutation ) ;
48+ console . log ( 'after force flush' , new Date ( ) . getTime ( ) )
49+ const allSnapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) ;
50+ const snapshots = allSnapshots . filter ( isInputMutation ) ;
4651 const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
52+ console . log ( allSnapshots )
4753 expect ( lastSnapshot . text ) . toBe ( '*' . repeat ( text . length ) ) ;
4854
4955 await page . locator ( '#input-unmasked' ) . type ( text ) ;
You can’t perform that action at this time.
0 commit comments