mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-04 12:40:00 +00:00
test(widgets): make color text assertion specific in WidgetColorPicker.test per review (DrJKL)
This commit is contained in:
@@ -118,8 +118,8 @@ describe('WidgetColorPicker Value Binding', () => {
|
||||
|
||||
// Need to check the local state update
|
||||
const colorText = wrapper.find('span')
|
||||
// Note: The actual text update depends on the component's reactive state
|
||||
expect(colorText.exists()).toBe(true)
|
||||
// Be specific about the displayed value including the leading '#'
|
||||
expect.soft(colorText.text()).toBe('#00ff00')
|
||||
})
|
||||
|
||||
it('uses default color when no value provided', () => {
|
||||
|
||||
Reference in New Issue
Block a user