Skip to content

Commit e88b81b

Browse files
committed
remove snapshot suffix, remove more html
1 parent 8f1c6ca commit e88b81b

File tree

7 files changed

+8
-212
lines changed

7 files changed

+8
-212
lines changed

packages/integration-tests/suites/replay/privacy/template.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
<body>
55
<button aria-label="Click me" onclick="console.log('Test log')">Click me</button>
66
<div>This should be masked by default</div>
7-
<div data-sentry-unmask>This should be unmasked due to data attribute</div>
8-
<input placeholder="Placeholder should be masked" />
9-
<div title="Title should be masked">Title should be masked</div>
107
</body>
118
</html>

packages/integration-tests/suites/replay/privacy/test.ts-snapshots/privacy-darwin.json

Lines changed: 0 additions & 205 deletions
This file was deleted.

packages/integration-tests/suites/replay/privacy/test.ts-snapshots/privacy.json

Whitespace-only changes.

packages/integration-tests/utils/fixtures.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const getAsset = (assetDir: string, asset: string): string => {
2222
};
2323

2424
export type TestFixtures = {
25+
_autoSnapshotSuffix: void;
2526
testDir: string;
2627
getLocalTestPath: (options: { testDir: string }) => Promise<string>;
2728
runInChromium: (fn: (...args: unknown[]) => unknown, args?: unknown[]) => unknown;
@@ -35,10 +36,13 @@ export type TestFixtures = {
3536
};
3637

3738
const sentryTest = base.extend<TestFixtures>({
38-
_autoSnapshotSuffix: [async ({ }, use, testInfo) => {
39-
testInfo.snapshotSuffix = '';
40-
await use();
41-
}, { auto: true }],
39+
_autoSnapshotSuffix: [
40+
async ({}, use, testInfo) => {
41+
testInfo.snapshotSuffix = '';
42+
await use();
43+
},
44+
{ auto: true },
45+
],
4246

4347
getLocalTestPath: ({}, use, testInfo) => {
4448
return use(async ({ testDir }) => {

0 commit comments

Comments
 (0)