diff --git a/app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js b/app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js index ea7898f33cd..aa0efbf80e3 100644 --- a/app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js +++ b/app/assets/javascripts/discourse/tests/unit/lib/sanitizer-test.js @@ -168,6 +168,38 @@ module("Unit | Utility | sanitizer", function () { ); }); + test("autoplay videos must be muted", function (assert) { + let pt = new PrettyText(buildOptions({ siteSettings: {} })); + assert.ok( + pt + .sanitize( + `

Hey