test(sw): align theme and consumer tests with the Dotum default
- theme-inheritance: default = Dotum stack, inheritance verification value = Noto Sans KR (same 23 checks). - SW/Theme Story: verification font and labels follow the new default. - ai-template-consumer: SWTheme token font now starts with Dotum. - footer-design-review (new): Footer design items (전체보기 / + hover, Model selected / unselected, category pockets, Model / Layout text) measured in Storybook with state screenshots.
This commit is contained in:
1 parent
633ea61c32
commit
d818d0308e
4 files changed
+166
-27
No files matched your search
@@ -41,7 +41,7 @@ await page.evaluate(() => document.fonts.ready)
|
||||
const assets = await page.evaluate(() => [...document.images].map(image => ({ src: image.currentSrc.slice(0, 30), ok: image.complete && image.naturalWidth > 0 })))
|
||||
check("1 all SVG/PNG assets decode (data URI, no external path)", assets.length > 0 && assets.every(item => item.ok && item.src.startsWith("data:")), { count: assets.length, broken: assets.filter(item => !item.ok) })
|
||||
const tokens = await page.evaluate(() => { const s = getComputedStyle(document.querySelector('[data-example="b"] .hm-sw-theme')); return { height: s.getPropertyValue("--hm-sw-header-height").trim(), font: s.fontFamily } })
|
||||
check("1 styles.css loaded; SWTheme provides tokens", tokens.height === "49px" && tokens.font.includes("Noto Sans KR"), tokens)
|
||||
check("1 styles.css loaded; SWTheme provides tokens", tokens.height === "49px" && tokens.font.startsWith("Dotum"), tokens)
|
||||
|
||||
// 2. Example A: default header unchanged (Figma 1920 coordinates)
|
||||
const a = section("a")
|
||||
|
||||
Reference in new issue
Block a user