Skip to content

Commit 9102111

Browse files
committed
fix tests + snapshots
1 parent 60a3a4f commit 9102111

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

packages/replay/test/integration/coreHandlers/handleScope.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ describe('Integration | coreHandlers | handleScope', () => {
1818
};
1919
});
2020

21-
await replay.start();
22-
jest.runAllTimers();
21+
replay.start();
2322

2423
expect(mockHandleScopeListener).toHaveBeenCalledTimes(1);
2524

packages/replay/test/integration/rrweb.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ describe('Integration | rrweb', () => {
2020
"blockSelector": ".sentry-block,[data-sentry-block],base[href=\\"/\\"],img,image,svg,video,object,picture,embed,map,audio,link[rel=\\"icon\\"],link[rel=\\"apple-touch-icon\\"]",
2121
"collectFonts": true,
2222
"emit": [Function],
23+
"errorHandler": [Function],
2324
"ignoreSelector": ".sentry-test-ignore,.sentry-ignore,[data-sentry-ignore],input[type=\\"file\\"]",
2425
"inlineImages": false,
2526
"inlineStylesheet": true,
2627
"maskAllInputs": true,
2728
"maskAllText": true,
29+
"maskAttributeFn": [Function],
2830
"maskInputFn": undefined,
2931
"maskInputOptions": Object {
3032
"password": true,
3133
},
32-
"maskInputSelector": ".sentry-mask,[data-sentry-mask]",
3334
"maskTextFn": undefined,
3435
"maskTextSelector": ".sentry-mask,[data-sentry-mask]",
3536
"onMutation": [Function],
3637
"slimDOMOptions": "all",
3738
"unblockSelector": ".sentry-unblock,[data-sentry-unblock]",
38-
"unmaskInputSelector": ".sentry-unmask,[data-sentry-unmask]",
3939
"unmaskTextSelector": ".sentry-unmask,[data-sentry-unmask]",
4040
}
4141
`);

packages/replay/test/mocks/mockRrweb.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export function mockRrweb(): { record: RecordMock } {
4545
jest.mock('@sentry-internal/rrweb', () => {
4646
const ActualRrweb = jest.requireActual('@sentry-internal/rrweb');
4747

48+
mockRecordFn.mirror = ActualRrweb.record.mirror;
49+
4850
return {
4951
...ActualRrweb,
5052
record: mockRecordFn,

packages/replay/test/unit/util/getPrivacyOptions.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ describe('Unit | util | getPrivacyOptions', () => {
2121
Object {
2222
"blockSelector": ".custom-block,.sentry-block,[data-sentry-block],base[href=\\"/\\"]",
2323
"ignoreSelector": ".custom-ignore,.sentry-ignore,[data-sentry-ignore],input[type=\\"file\\"]",
24-
"maskInputSelector": ".custom-mask,.sentry-mask,[data-sentry-mask]",
2524
"maskTextSelector": ".custom-mask,.sentry-mask,[data-sentry-mask]",
2625
"unblockSelector": ".custom-unblock,.sentry-unblock,[data-sentry-unblock]",
27-
"unmaskInputSelector": ".custom-unmask,.sentry-unmask,[data-sentry-unmask]",
2826
"unmaskTextSelector": ".custom-unmask,.sentry-unmask,[data-sentry-unmask]",
2927
}
3028
`);
@@ -49,10 +47,8 @@ describe('Unit | util | getPrivacyOptions', () => {
4947
Object {
5048
"blockSelector": ".custom-block,.deprecated-block-selector,.sentry-block,[data-sentry-block],base[href=\\"/\\"],.deprecated-block-class",
5149
"ignoreSelector": ".custom-ignore,.sentry-ignore,[data-sentry-ignore],input[type=\\"file\\"],.deprecated-ignore-class",
52-
"maskInputSelector": ".custom-mask,.deprecated-mask-selector,.sentry-mask,[data-sentry-mask],.deprecated-mask-class",
5350
"maskTextSelector": ".custom-mask,.deprecated-mask-selector,.sentry-mask,[data-sentry-mask],.deprecated-mask-class",
5451
"unblockSelector": ".custom-unblock,.sentry-unblock,[data-sentry-unblock]",
55-
"unmaskInputSelector": ".custom-unmask,.sentry-unmask,[data-sentry-unmask]",
5652
"unmaskTextSelector": ".custom-unmask,.sentry-unmask,[data-sentry-unmask]",
5753
}
5854
`);
@@ -75,11 +71,9 @@ describe('Unit | util | getPrivacyOptions', () => {
7571
"blockClass": /deprecated-block-\\*/,
7672
"blockSelector": ".custom-block,.sentry-block,[data-sentry-block],base[href=\\"/\\"]",
7773
"ignoreSelector": ".custom-ignore,.sentry-ignore,[data-sentry-ignore],input[type=\\"file\\"]",
78-
"maskInputSelector": ".custom-mask,.sentry-mask,[data-sentry-mask]",
7974
"maskTextClass": /deprecated-mask-\\*/,
8075
"maskTextSelector": ".custom-mask,.sentry-mask,[data-sentry-mask]",
8176
"unblockSelector": ".custom-unblock,.sentry-unblock,[data-sentry-unblock]",
82-
"unmaskInputSelector": ".custom-unmask,.sentry-unmask,[data-sentry-unmask]",
8377
"unmaskTextSelector": ".custom-unmask,.sentry-unmask,[data-sentry-unmask]",
8478
}
8579
`);

0 commit comments

Comments
 (0)