Skip to content

Commit

Permalink
chore: add cy test for open-all
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwu9145 committed Jun 20, 2024
1 parent 6e69370 commit 02e159a
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,19 @@ describe('VTreeview', () => {
})
})
})
it.only('should have all items visible when open-all is applied', () => {
cy.mount(() => (
<>
<VTreeview
open-all
items={ items.value }
item-title="title"
item-value="id"
/>
</>
))
.get('.v-treeview-item')
.filter(':visible')
.should('have.length', 7)
})
})

0 comments on commit 02e159a

Please sign in to comment.