feat(sw): remove no-logo case from SW Header Logo story
Deploy Storybook / deploy (push) Successful in 2m17s

Viewer Logo story keeps its no-logo case. Viewer test expects 2 SW headers.
This commit is contained in:
shkim4 committed 2026-10-26 16:02:40 +09:00
1 parent fa7747cdbb
commit 6780abb42d
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -449,7 +449,7 @@ if (comparison.reference) {
}
check('header height and menu row unchanged with / without logo', [none, src, node].every(item => item.height === 52 && item.fileOpenY === none.fileOpenY), [none, src, node].map(item => item.height + '/' + item.fileOpenY).join(' '))
{
// SWHeader keeps its 80px home area and slant without a logo (unlike the viewer).
// SWHeader keeps its 80px home area and slant with a logo (2026-10-26: its Logo story has no "로고 없음" case).
const sw = await newPage(1920, 1000)
await sw.goto(`${storybook}/iframe.html?id=sw-header--logo-slot&viewMode=story`)
await sw.waitForSelector('[data-logo-case] .hm-sw-header:visible')
@@ -457,7 +457,7 @@ if (comparison.reference) {
const home = header.querySelector('.hm-sw-header__home')
return { width: home ? Math.round(home.getBoundingClientRect().width) : 0, slant: !!home?.querySelector('.hm-sw-header__home-bg') }
}))
check('SWHeader: 80px home area and slant with and without a logo', homes.length === 3 && homes.every(home => home.width === 80 && home.slant), JSON.stringify(homes))
check('SWHeader: 80px home area and slant with a logo', homes.length === 2 && homes.every(home => home.width === 80 && home.slant), JSON.stringify(homes))
await sw.close()
}
for (const [index, name] of [[0, 'none'], [1, 'src'], [2, 'element']]) {