Skip to content

Commit aaebc8b

Browse files
committed
add test for unblock
1 parent ed30d5a commit aaebc8b

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<div data-sentry-unmask>This should be unmasked due to data attribute</div>
88
<input placeholder="Placeholder should be masked" />
99
<div title="Title should be masked">Title should be masked</div>
10-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path d="M79 71.91a7.32 7.32 0 0 0 0-7.38L46.4 8A7.22 7.22 0 0 0 40 4.37 7.33 7.33 0 0 0 33.62 8L23.06 26.33l2.66 1.54A51.42 51.42 0 0 1 44.6 46.75a50.41 50.41 0 0 1 6.81 22.72H44a44.34 44.34 0 0 0-5.84-19A43.76 43.76 0 0 0 22.07 34.2l-2.66-1.54-9.83 17.13 2.65 1.54A24.9 24.9 0 0 1 24.3 69.47H7.39a1.2 1.2 0 0 1-1.06-.59 1.21 1.21 0 0 1 0-1.23l4.73-8.14a17.67 17.67 0 0 0-5.38-3.08L1 64.57A7.34 7.34 0 0 0 1 72a7.25 7.25 0 0 0 6.39 3.67h23.24v-3.12a31.32 31.32 0 0 0-4.09-15.38 31.26 31.26 0 0 0-8.67-9.57l3.71-6.39a38 38 0 0 1 11.33 12.28 38.1 38.1 0 0 1 5.1 19v3.08h19.68v-3.02a57.52 57.52 0 0 0-7.76-28.88A57.48 57.48 0 0 0 31.47 24.1l7.51-13a1.18 1.18 0 0 1 1.02-.57 1.16 1.16 0 0 1 1.05.59L73.7 67.61a1.2 1.2 0 0 1 0 1.22 1.13 1.13 0 0 1-1.06.59H65c.1 2.07.1 4.09 0 6.16h7.65A7.1 7.1 0 0 0 79 71.91z"/></svg>
11-
<img href="#foo" />
10+
<svg viewBox="0 0 80 80"><path d="M79 71.91a7.32 7.32 0 0 0 0-7.38L46.4 8A7.22 7.22 0 0 0 40 4.37 7.33 7.33 0 0 0 33.62 8L23.06 26.33l2.66 1.54A51.42 51.42 0 0 1 44.6 46.75a50.41 50.41 0 0 1 6.81 22.72H44a44.34 44.34 0 0 0-5.84-19A43.76 43.76 0 0 0 22.07 34.2l-2.66-1.54-9.83 17.13 2.65 1.54A24.9 24.9 0 0 1 24.3 69.47H7.39a1.2 1.2 0 0 1-1.06-.59 1.21 1.21 0 0 1 0-1.23l4.73-8.14a17.67 17.67 0 0 0-5.38-3.08L1 64.57A7.34 7.34 0 0 0 1 72a7.25 7.25 0 0 0 6.39 3.67h23.24v-3.12a31.32 31.32 0 0 0-4.09-15.38 31.26 31.26 0 0 0-8.67-9.57l3.71-6.39a38 38 0 0 1 11.33 12.28 38.1 38.1 0 0 1 5.1 19v3.08h19.68v-3.02a57.52 57.52 0 0 0-7.76-28.88A57.48 57.48 0 0 0 31.47 24.1l7.51-13a1.18 1.18 0 0 1 1.02-.57 1.16 1.16 0 0 1 1.05.59L73.7 67.61a1.2 1.2 0 0 1 0 1.22 1.13 1.13 0 0 1-1.06.59H65c.1 2.07.1 4.09 0 6.16h7.65A7.1 7.1 0 0 0 79 71.91z"/></svg>
11+
<img style="width:100px;height:100px" src="//foo/foo.png" />
12+
<img data-sentry-unblock style="width:100px;height:100px" src="//foo/foo.png" />
1213
</body>
1314
</html>

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

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ sentryTest('should have the correct default privacy settings', async ({ getLocal
186186
},
187187
{
188188
attributes: {
189-
rr_height: '0px',
190-
rr_width: '0px',
189+
rr_height: '100px',
190+
rr_width: '100px',
191191
},
192192
childNodes: [],
193193
id: 25,
@@ -196,11 +196,27 @@ sentryTest('should have the correct default privacy settings', async ({ getLocal
196196
},
197197
{
198198
id: 26,
199-
textContent: '\n ',
199+
textContent: '\n ',
200200
type: 3,
201201
},
202202
{
203+
attributes: {
204+
"data-sentry-unblock": "",
205+
src: "file://foo/foo.png",
206+
style: "width:100px;height:100px",
207+
},
208+
childNodes: [],
203209
id: 27,
210+
tagName: 'img',
211+
type: 2,
212+
},
213+
{
214+
id: 28,
215+
textContent: '\n ',
216+
type: 3,
217+
},
218+
{
219+
id: 29,
204220
textContent: '\n\n',
205221
type: 3,
206222
},

0 commit comments

Comments
 (0)