T11b Media Embed Smoke Test

#元 #测试 145 words 1 min read

Rendering verification for T11b. If any of iframe / video player / swiper / image-compare fails to appear, the corresponding shortcode isn’t wired up.

1. Bilibili

2. Video.js (HTML5 video player)

3. YouTube

4. Iframe (generic embed)

4a. Iframe (whitelisted host: CodePen theme bridge)

After toggling the site to dark mode, this iframe should auto-reload into the dark theme; the very first request should already carry theme-id=dark. Non-whitelisted hosts (example.com) stay as-is and do not reload.

5. Swiper

(swiper requires a data file; this is a placeholder to verify that swiper-bundle JS/CSS is injected. A full test needs a real data reference like assets/data/cn/2020-06-06-bayesian-optimization/active-gp.json, to be added when actual posts are migrated back.)

6. Image Compare

(image-compare needs before/after images; this is a placeholder to verify that image-compare-viewer is injected.)