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
39
39
40
40
const text = 'test' ;
41
41
42
+ console . log ( 'start input' ) ;
42
43
page . on ( 'console' , message => console . log ( message . text ( ) ) )
43
44
await page . locator ( '#input' ) . type ( text ) ;
44
45
console . log ( 'input value: ' , await page . locator ( '#input' ) . inputValue ( ) ) ;
@@ -48,7 +49,8 @@ sentryTest('should mask input initial value and its changes', async ({ getLocalT
48
49
const allSnapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) ;
49
50
const snapshots = allSnapshots . filter ( isInputMutation ) ;
50
51
const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
51
- console . log ( allSnapshots )
52
+ console . log ( 'input snapshots: ' , allSnapshots , snapshots )
53
+ console . log ( 'end input' ) ;
52
54
expect ( lastSnapshot . text ) . toBe ( text ) ;
53
55
54
56
await page . locator ( '#input-masked' ) . type ( text , { timeout : 5000 } ) ;
Original file line number Diff line number Diff line change @@ -40,16 +40,18 @@ sentryTest(
40
40
41
41
const text = 'test' ;
42
42
43
+ console . log ( 'start inputMaskAll' )
43
44
page . on ( 'console' , message => console . log ( message . text ( ) ) )
44
45
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 ( ) )
47
48
await forceFlushReplay ( ) ;
48
- console . log ( 'after force flush' , new Date ( ) . getTime ( ) )
49
+ console . log ( 'after force flush' , new Date ( ) . getTime ( ) )
49
50
const allSnapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) ;
50
51
const snapshots = allSnapshots . filter ( isInputMutation ) ;
51
52
const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
52
- console . log ( allSnapshots )
53
+ console . log ( 'inputMaskAll snapshots: ' , allSnapshots , snapshots )
54
+ console . log ( 'end inputMaskAll' )
53
55
expect ( lastSnapshot . text ) . toBe ( '*' . repeat ( text . length ) ) ;
54
56
55
57
await page . locator ( '#input-unmasked' ) . type ( text ) ;
You can’t perform that action at this time.
0 commit comments