summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/render-html.test.js
diff options
context:
space:
mode:
authorGravatar Matt Kane <m@mk.gg> 2024-12-02 14:37:00 +0000
committerGravatar GitHub <noreply@github.com> 2024-12-02 14:37:00 +0000
commitfa07002352147d45da193f28fd6e02d2d42dc67a (patch)
tree66492ef4ace0908eecbce5e2f85283acca055cb8 /packages/integrations/markdoc/test/render-html.test.js
parent15f000c3e7bc5308c39107095e5af4258c2373a5 (diff)
downloadastro-fa07002352147d45da193f28fd6e02d2d42dc67a.tar.gz
astro-fa07002352147d45da193f28fd6e02d2d42dc67a.tar.zst
astro-fa07002352147d45da193f28fd6e02d2d42dc67a.zip
fix(markdoc): correctly render boolean HTML attributes (#12584)
Diffstat (limited to 'packages/integrations/markdoc/test/render-html.test.js')
-rw-r--r--packages/integrations/markdoc/test/render-html.test.js5
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 */