mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
fix: unit tests
This commit is contained in:
@@ -133,7 +133,7 @@ describe('EssentialNodesPanel', () => {
|
||||
})
|
||||
|
||||
describe('default expansion', () => {
|
||||
it('should expand first two folders by default when expandedKeys is empty', async () => {
|
||||
it('should expand all folders by default when expandedKeys is empty', async () => {
|
||||
const wrapper = mountComponent(createMockRoot(), [])
|
||||
await nextTick()
|
||||
await flushPromises()
|
||||
@@ -142,7 +142,7 @@ describe('EssentialNodesPanel', () => {
|
||||
const roots = wrapper.findAll('.collapsible-root')
|
||||
expect(roots[0].attributes('data-state')).toBe('open')
|
||||
expect(roots[1].attributes('data-state')).toBe('open')
|
||||
expect(roots[2].attributes('data-state')).toBe('closed')
|
||||
expect(roots[2].attributes('data-state')).toBe('open')
|
||||
})
|
||||
|
||||
it('should respect provided expandedKeys', async () => {
|
||||
|
||||
Reference in New Issue
Block a user