Skip to content

Commit 5b52417

Browse files
committed
fix: broken tests due to formatting changes
1 parent 62ddf81 commit 5b52417

File tree

4 files changed

+84
-38
lines changed

4 files changed

+84
-38
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<testsuites id="" name="" tests="2" failures="0" skipped="0" errors="0" time="4.057123">
2+
<testsuite name="suites/replay/privacyBlock/test.ts" timestamp="2026-02-12T21:36:46.863Z" hostname="chromium" tests="1" failures="0" skipped="0" time="2.744" errors="0">
3+
<testcase name="should allow to manually block elements" classname="suites/replay/privacyBlock/test.ts" time="2.744">
4+
</testcase>
5+
</testsuite>
6+
<testsuite name="suites/replay/privacyDefault/test.ts" timestamp="2026-02-12T21:36:46.863Z" hostname="chromium" tests="1" failures="0" skipped="0" time="2.745" errors="0">
7+
<testcase name="should have the correct default privacy settings" classname="suites/replay/privacyDefault/test.ts" time="2.745">
8+
</testcase>
9+
</testsuite>
10+
</testsuites>

dev-packages/browser-integration-tests/suites/integrations/ContextLines/inline/test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ sentryTest(
3535
{
3636
pre_context: ['<!DOCTYPE html>', '<html>', '<head>', ' <meta charset="utf-8">', ' </head>', ' <body>'],
3737
context_line:
38-
' <button id="inline-error-btn" onclick="throw new Error(\'Error with context lines\')">Click me</button>',
38+
' <button id="inline-error-btn" onclick="throw new Error(\'Error with context lines\');">Click me</button>',
3939
post_context: [
4040
expect.stringContaining('<script'), // this line varies in the test based on tarball/cdn bundle (+variants)
41-
' <footer>',
42-
' Some text...',
43-
' ',
41+
' <footer>Some text...</footer>',
4442
'',
45-
'</footer></body>',
43+
'</body>',
4644
'</html>',
4745
],
4846
},

dev-packages/browser-integration-tests/suites/integrations/ContextLines/scriptTag/test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,18 @@ sentryTest(
3737
pre_context: [
3838
' <script>',
3939
' function throwTestError() {',
40-
" throw new Error('Error with context lines')",
40+
" throw new Error('Error with context lines');",
4141
' }',
4242
' </script>',
4343
' </head>',
4444
' <body>',
4545
],
46-
context_line: ' <button id="inline-error-btn" onclick="throwTestError()">Click me</button>',
46+
context_line: ' <button id="inline-error-btn" onclick="throwTestError()">Click me</button>',
4747
post_context: [
4848
expect.stringContaining('<script'), // this line varies in the test based on tarball/cdn bundle (+variants)
49-
' <footer>',
50-
' Some text...',
51-
' ',
49+
' <footer>Some text...</footer>',
5250
'',
53-
'</footer></body>',
51+
'</body>',
5452
'</html>',
5553
],
5654
},
@@ -64,15 +62,15 @@ sentryTest(
6462
' <script>',
6563
' function throwTestError() {',
6664
],
67-
context_line: " throw new Error('Error with context lines')",
65+
context_line: " throw new Error('Error with context lines');",
6866
post_context: [
6967
' }',
7068
' </script>',
7169
' </head>',
7270
' <body>',
73-
' <button id="inline-error-btn" onclick="throwTestError()">Click me</button>',
71+
' <button id="inline-error-btn" onclick="throwTestError()">Click me</button>',
7472
expect.stringContaining('<script'), // this line varies in the test based on tarball/cdn bundle (+variants)
75-
' <footer>',
73+
' <footer>Some text...</footer>',
7674
],
7775
},
7876
],

dev-packages/browser-integration-tests/suites/replay/privacyBlock/test.ts-snapshots/privacy-chromium.json

Lines changed: 64 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,15 @@
155155
"type": 2,
156156
"tagName": "svg",
157157
"attributes": {
158-
"style": "width:200px;height:200px",
158+
"style": "width: 200px; height: 200px",
159159
"viewBox": "0 0 80 80"
160160
},
161161
"childNodes": [
162+
{
163+
"type": 3,
164+
"textContent": "\n ",
165+
"id": 25
166+
},
162167
{
163168
"type": 2,
164169
"tagName": "path",
@@ -167,23 +172,38 @@
167172
},
168173
"childNodes": [],
169174
"isSVG": true,
170-
"id": 25
175+
"id": 26
176+
},
177+
{
178+
"type": 3,
179+
"textContent": "\n ",
180+
"id": 27
171181
},
172182
{
173183
"type": 2,
174184
"tagName": "area",
175185
"attributes": {},
176186
"childNodes": [],
177187
"isSVG": true,
178-
"id": 26
188+
"id": 28
189+
},
190+
{
191+
"type": 3,
192+
"textContent": "\n ",
193+
"id": 29
179194
},
180195
{
181196
"type": 2,
182197
"tagName": "rect",
183198
"attributes": {},
184199
"childNodes": [],
185200
"isSVG": true,
186-
"id": 27
201+
"id": 30
202+
},
203+
{
204+
"type": 3,
205+
"textContent": "\n ",
206+
"id": 31
187207
}
188208
],
189209
"isSVG": true,
@@ -192,7 +212,7 @@
192212
{
193213
"type": 3,
194214
"textContent": "\n ",
195-
"id": 28
215+
"id": 32
196216
},
197217
{
198218
"type": 2,
@@ -202,22 +222,27 @@
202222
"rr_height": "[0-50]px"
203223
},
204224
"childNodes": [],
205-
"id": 29
225+
"id": 33
206226
},
207227
{
208228
"type": 3,
209229
"textContent": "\n ",
210-
"id": 30
230+
"id": 34
211231
},
212232
{
213233
"type": 2,
214234
"tagName": "svg",
215235
"attributes": {
216-
"style": "width:200px;height:200px",
236+
"style": "width: 200px; height: 200px",
217237
"viewBox": "0 0 80 80",
218238
"data-sentry-unblock": ""
219239
},
220240
"childNodes": [
241+
{
242+
"type": 3,
243+
"textContent": "\n ",
244+
"id": 36
245+
},
221246
{
222247
"type": 2,
223248
"tagName": "path",
@@ -226,63 +251,78 @@
226251
},
227252
"childNodes": [],
228253
"isSVG": true,
229-
"id": 32
254+
"id": 37
255+
},
256+
{
257+
"type": 3,
258+
"textContent": "\n ",
259+
"id": 38
230260
},
231261
{
232262
"type": 2,
233263
"tagName": "area",
234264
"attributes": {},
235265
"childNodes": [],
236266
"isSVG": true,
237-
"id": 33
267+
"id": 39
268+
},
269+
{
270+
"type": 3,
271+
"textContent": "\n ",
272+
"id": 40
238273
},
239274
{
240275
"type": 2,
241276
"tagName": "rect",
242277
"attributes": {},
243278
"childNodes": [],
244279
"isSVG": true,
245-
"id": 34
280+
"id": 41
281+
},
282+
{
283+
"type": 3,
284+
"textContent": "\n ",
285+
"id": 42
246286
}
247287
],
248288
"isSVG": true,
249-
"id": 31
289+
"id": 35
250290
},
251291
{
252292
"type": 3,
253293
"textContent": "\n ",
254-
"id": 35
294+
"id": 43
255295
},
256296
{
257297
"type": 2,
258298
"tagName": "img",
259299
"attributes": {
260-
"style": "width:100px;height:100px",
300+
"style": "width: 100px; height: 100px",
261301
"src": "file:///none.png"
262302
},
263303
"childNodes": [],
264-
"id": 36
304+
"id": 44
265305
},
266306
{
267307
"type": 3,
268308
"textContent": "\n ",
269-
"id": 37
309+
"id": 45
270310
},
271311
{
272312
"type": 2,
273313
"tagName": "img",
274314
"attributes": {
275315
"data-sentry-unblock": "",
276-
"style": "width:100px;height:100px",
316+
"style": "width: 100px; height: 100px",
277317
"src": "file:///none.png"
278318
},
279319
"childNodes": [],
280-
"id": 38
320+
"id": 46
281321
},
282322
{
283323
"type": 3,
284324
"textContent": "\n ",
285-
"id": 39
325+
"id": 47
286326
},
287327
{
288328
"type": 2,
@@ -292,12 +332,12 @@
292332
"rr_height": "[0-50]px"
293333
},
294334
"childNodes": [],
295-
"id": 40
335+
"id": 48
296336
},
297337
{
298338
"type": 3,
299339
"textContent": "\n ",
300-
"id": 41
340+
"id": 49
301341
},
302342
{
303343
"type": 2,
@@ -308,17 +348,17 @@
308348
"rr_height": "[0-50]px"
309349
},
310350
"childNodes": [],
311-
"id": 42
351+
"id": 50
312352
},
313353
{
314354
"type": 3,
315355
"textContent": "\n ",
316-
"id": 43
356+
"id": 51
317357
},
318358
{
319359
"type": 3,
320360
"textContent": "\n\n",
321-
"id": 44
361+
"id": 52
322362
}
323363
],
324364
"id": 8

0 commit comments

Comments
 (0)