Skip to content

Commit 34a2c49

Browse files
committed
more debug
1 parent f57d174 commit 34a2c49

File tree

2 files changed

+9
-5
lines changed
  • packages/integration-tests/suites/replay

2 files changed

+9
-5
lines changed

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

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

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)