Skip to content

Commit 62c6025

Browse files
authored
test(replay): Add <video> example to privacy test (#7148)
1 parent 2ec2598 commit 62c6025

File tree

5 files changed

+53
-6
lines changed

5 files changed

+53
-6
lines changed

packages/integration-tests/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"type-check": "tsc",
2020
"pretest": "yarn clean && yarn type-check",
2121
"test": "playwright test ./suites",
22+
"test:replay": "yarn pretest && PWDEBUG=console playwright test ./suites/replay/privacy",
2223
"test:bundle:es5": "PW_BUNDLE=bundle_es5 yarn test",
2324
"test:bundle:es5:min": "PW_BUNDLE=bundle_es5_min yarn test",
2425
"test:bundle:es6": "PW_BUNDLE=bundle_es6 yarn test",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
<svg style="width:200px;height:200px" viewBox="0 0 80 80" data-sentry-unblock><path d=""/><area /><rect /></svg>
1212
<img style="width:100px;height:100px" src="file:///none.png" />
1313
<img data-sentry-unblock style="width:100px;height:100px" src="file:///none.png" />
14+
<video style="width:30px;height:30px"><source src="file://foo.mp4" /></video>
1415
</body>
1516
</html>

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,28 @@
227227
},
228228
{
229229
"type": 3,
230-
"textContent": "\n ",
230+
"textContent": "\n ",
231231
"id": 33
232232
},
233+
{
234+
"type": 2,
235+
"tagName": "video",
236+
"attributes": {
237+
"rr_width": "30px",
238+
"rr_height": "30px"
239+
},
240+
"childNodes": [],
241+
"id": 34
242+
},
243+
{
244+
"type": 3,
245+
"textContent": "\n ",
246+
"id": 35
247+
},
233248
{
234249
"type": 3,
235250
"textContent": "\n\n",
236-
"id": 34
251+
"id": 36
237252
}
238253
],
239254
"id": 7

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,28 @@
227227
},
228228
{
229229
"type": 3,
230-
"textContent": "\n ",
230+
"textContent": "\n ",
231231
"id": 33
232232
},
233+
{
234+
"type": 2,
235+
"tagName": "video",
236+
"attributes": {
237+
"rr_width": "30px",
238+
"rr_height": "30px"
239+
},
240+
"childNodes": [],
241+
"id": 34
242+
},
243+
{
244+
"type": 3,
245+
"textContent": "\n ",
246+
"id": 35
247+
},
233248
{
234249
"type": 3,
235250
"textContent": "\n\n",
236-
"id": 34
251+
"id": 36
237252
}
238253
],
239254
"id": 7

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,28 @@
227227
},
228228
{
229229
"type": 3,
230-
"textContent": "\n ",
230+
"textContent": "\n ",
231231
"id": 33
232232
},
233+
{
234+
"type": 2,
235+
"tagName": "video",
236+
"attributes": {
237+
"rr_width": "30px",
238+
"rr_height": "30px"
239+
},
240+
"childNodes": [],
241+
"id": 34
242+
},
243+
{
244+
"type": 3,
245+
"textContent": "\n ",
246+
"id": 35
247+
},
233248
{
234249
"type": 3,
235250
"textContent": "\n\n",
236-
"id": 34
251+
"id": 36
237252
}
238253
],
239254
"id": 7

0 commit comments

Comments
 (0)