File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
packages/integration-tests/suites/replay Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ sentryTest('should mask input initial value and its changes', async ({ getLocalT
3939
4040 const text = 'test' ;
4141
42+ console . log ( 'start input' ) ;
4243 page . on ( 'console' , message => console . log ( message . text ( ) ) )
4344 await page . locator ( '#input' ) . type ( text ) ;
4445 console . log ( 'input value: ' , await page . locator ( '#input' ) . inputValue ( ) ) ;
@@ -48,7 +49,8 @@ sentryTest('should mask input initial value and its changes', async ({ getLocalT
4849 const allSnapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) ;
4950 const snapshots = allSnapshots . filter ( isInputMutation ) ;
5051 const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
51- console . log ( allSnapshots )
52+ console . log ( 'input snapshots: ' , allSnapshots , snapshots )
53+ console . log ( 'end input' ) ;
5254 expect ( lastSnapshot . text ) . toBe ( text ) ;
5355
5456 await page . locator ( '#input-masked' ) . type ( text , { timeout : 5000 } ) ;
Original file line number Diff line number Diff line change @@ -40,16 +40,18 @@ sentryTest(
4040
4141 const text = 'test' ;
4242
43+ console . log ( 'start inputMaskAll' )
4344 page . on ( 'console' , message => console . log ( message . text ( ) ) )
4445 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 ( ) )
46+ console . log ( 'input value: ' , await page . locator ( '#input' ) . inputValue ( ) ) ;
47+ console . log ( 'before force flush' , new Date ( ) . getTime ( ) )
4748 await forceFlushReplay ( ) ;
48- console . log ( 'after force flush' , new Date ( ) . getTime ( ) )
49+ console . log ( 'after force flush' , new Date ( ) . getTime ( ) )
4950 const allSnapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) ;
5051 const snapshots = allSnapshots . filter ( isInputMutation ) ;
5152 const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
52- console . log ( allSnapshots )
53+ console . log ( 'inputMaskAll snapshots: ' , allSnapshots , snapshots )
54+ console . log ( 'end inputMaskAll' )
5355 expect ( lastSnapshot . text ) . toBe ( '*' . repeat ( text . length ) ) ;
5456
5557 await page . locator ( '#input-unmasked' ) . type ( text ) ;
You can’t perform that action at this time.
0 commit comments