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(
40
40
41
41
const text = 'test' ;
42
42
43
+ page . on ( 'console' , message => console . log ( message . text ( ) ) )
43
44
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 ( ) )
44
47
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 ) ;
46
51
const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
52
+ console . log ( allSnapshots )
47
53
expect ( lastSnapshot . text ) . toBe ( '*' . repeat ( text . length ) ) ;
48
54
49
55
await page . locator ( '#input-unmasked' ) . type ( text ) ;
You can’t perform that action at this time.
0 commit comments