mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [tree-v2] default icon render test (#10342)
Co-authored-by: zz <2418184580@qq.com> Co-authored-by: init-qy <953218204@qq.com>
This commit is contained in:
@@ -183,9 +183,11 @@ const createTree = (
|
||||
|
||||
describe('Virtual Tree', () => {
|
||||
test('create', async () => {
|
||||
const { treeVm } = createTree()
|
||||
const { wrapper, treeVm } = createTree()
|
||||
await nextTick()
|
||||
expect(treeVm.flattenTree.length).toEqual(NODE_NUMBER)
|
||||
const iconWrapper = wrapper.find(TREE_NODE_EXPAND_ICON_CLASS_NAME)
|
||||
expect(iconWrapper.find('svg').exists()).toBeTruthy()
|
||||
})
|
||||
|
||||
test('click node', async () => {
|
||||
|
||||
Reference in New Issue
Block a user