fix(storybook): use SWSlider in the SW Popup story

This commit is contained in:
shkim4 committed 2026-10-20 21:49:46 +09:00
1 parent 5032c94d9e
commit 2ce24b8b43
2 files changed
+10 -7

No files matched your search

@@ -21,10 +21,12 @@ export async function popupChecks({ page, goto, check, log, rect, out, report })
// 2026-10-20: the unit select is SWSelect (the Viewer 축척 지정 select), no longer the HM UI Select.
await settings.locator('[data-sw-select="unit"]').selectOption('cm')
check('popup content: SWSelect (unit) works inside', (await log()).includes('unit=cm') && await settings.getByLabel('단위').inputValue() === 'cm')
await settings.locator('[data-ui-slider] [role="slider"]').focus()
// 2026-10-20: the popup gauge is SWSlider (native range; keyboard steps commit through onValueCommit).
await settings.locator('[data-popup-slider]').focus()
await page.keyboard.press('ArrowRight')
await page.waitForTimeout(100)
check('popup content: HM UI Slider works inside', /opacity=70/.test(await log()), await log())
check('popup content: SWSlider works inside', /opacity=70/.test(await log()) && await settings.locator('[data-popup-slider]').evaluate(e => e.classList.contains('hm-sw-slider') && e.dataset.appearance === 'panel' && e.value === '70'), await log())
check('popup content: no HM UI Slider left inside the popups', await page.locator('[data-popups] [data-slot="slider"]').count() === 0)
await settings.locator('[data-ui-apply]').click()
check('popup content: HM UI Button works inside', (await log()).includes('apply'))
// 2026-10-20: popup layer / color are the property window pickers (SWPopupPropertyRow); SWHeader field dropdowns are