diff options
Diffstat (limited to 'packages/integrations/markdoc/test/render-html.test.js')
-rw-r--r-- | packages/integrations/markdoc/test/render-html.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/integrations/markdoc/test/render-html.test.js b/packages/integrations/markdoc/test/render-html.test.js index 6f877d1e5..5bf7fe5ce 100644 --- a/packages/integrations/markdoc/test/render-html.test.js +++ b/packages/integrations/markdoc/test/render-html.test.js @@ -123,6 +123,11 @@ function renderSimpleChecks(html) { const p3 = document.querySelector('article > p:nth-of-type(3)'); assert.equal(p3.children.length, 1); assert.equal(p3.textContent, 'This is a span inside a paragraph!'); + + const video = document.querySelector('video'); + assert.ok(video, 'A video element should exist'); + assert.ok(video.hasAttribute('autoplay'), 'The video element should have the autoplay attribute'); + assert.ok(video.hasAttribute('muted'), 'The video element should have the muted attribute'); } /** @param {string} html */ |