Skip to content

Commit f57d174

Browse files
committed
debug in maskAll
1 parent 364d814 commit f57d174

File tree

1 file changed

+7
-1
lines changed
  • packages/integration-tests/suites/replay/privacyInputMaskAll

1 file changed

+7
-1
lines changed

packages/integration-tests/suites/replay/privacyInputMaskAll/test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)