@@ -45,19 +45,19 @@ sentryTest(
45
45
46
46
const text = 'test' ;
47
47
48
- await page . locator ( '#input' ) . type ( text ) ;
48
+ await page . locator ( '#input' ) . fill ( text ) ;
49
49
await forceFlushReplay ( ) ;
50
50
const snapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) . filter ( isInputMutation ) ;
51
51
const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
52
52
expect ( lastSnapshot . data . text ) . toBe ( text ) ;
53
53
54
- await page . locator ( '#input-masked' ) . type ( text ) ;
54
+ await page . locator ( '#input-masked' ) . fill ( text ) ;
55
55
await forceFlushReplay ( ) ;
56
56
const snapshots2 = getIncrementalRecordingSnapshots ( await reqPromise2 ) . filter ( isInputMutation ) ;
57
57
const lastSnapshot2 = snapshots2 [ snapshots2 . length - 1 ] ;
58
58
expect ( lastSnapshot2 . data . text ) . toBe ( '*' . repeat ( text . length ) ) ;
59
59
60
- await page . locator ( '#input-ignore' ) . type ( text ) ;
60
+ await page . locator ( '#input-ignore' ) . fill ( text ) ;
61
61
await forceFlushReplay ( ) ;
62
62
const snapshots3 = getIncrementalRecordingSnapshots ( await reqPromise3 ) . filter ( isInputMutation ) ;
63
63
expect ( snapshots3 . length ) . toBe ( 0 ) ;
@@ -91,19 +91,19 @@ sentryTest(
91
91
await reqPromise0 ;
92
92
93
93
const text = 'test' ;
94
- await page . locator ( '#textarea' ) . type ( text ) ;
94
+ await page . locator ( '#textarea' ) . fill ( text ) ;
95
95
await forceFlushReplay ( ) ;
96
96
const snapshots = getIncrementalRecordingSnapshots ( await reqPromise1 ) . filter ( isInputMutation ) ;
97
97
const lastSnapshot = snapshots [ snapshots . length - 1 ] ;
98
98
expect ( lastSnapshot . data . text ) . toBe ( text ) ;
99
99
100
- await page . locator ( '#textarea-masked' ) . type ( text ) ;
100
+ await page . locator ( '#textarea-masked' ) . fill ( text ) ;
101
101
await forceFlushReplay ( ) ;
102
102
const snapshots2 = getIncrementalRecordingSnapshots ( await reqPromise2 ) . filter ( isInputMutation ) ;
103
103
const lastSnapshot2 = snapshots2 [ snapshots2 . length - 1 ] ;
104
104
expect ( lastSnapshot2 . data . text ) . toBe ( '*' . repeat ( text . length ) ) ;
105
105
106
- await page . locator ( '#textarea-ignore' ) . type ( text ) ;
106
+ await page . locator ( '#textarea-ignore' ) . fill ( text ) ;
107
107
await forceFlushReplay ( ) ;
108
108
const snapshots3 = getIncrementalRecordingSnapshots ( await reqPromise3 ) . filter ( isInputMutation ) ;
109
109
expect ( snapshots3 . length ) . toBe ( 0 ) ;
0 commit comments