Skip to content

Commit 67cdcd2

Browse files
committed
Tests - Update VueUiTreemap component tests
1 parent e429607 commit 67cdcd2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/components/vue-ui-treemap.cy.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ describe('<VueUiTreemap />', () => {
3939
});
4040
});
4141

42+
it('renders breadcrumbs', () => {
43+
cy.mount(VueUiTreemap, {
44+
props: {
45+
dataset,
46+
config
47+
}
48+
}).then(() => {
49+
cy.get('.vue-ui-treemap-breadcrumbs').should('not.exist')
50+
cy.get('.vue-ui-treemap-rect').first().click()
51+
cy.get('.vue-ui-treemap-breadcrumbs').should('exist').and('be.visible')
52+
cy.get('.vue-ui-treemap-crumb').first().click()
53+
cy.get('.vue-ui-treemap-breadcrumbs').should('not.exist')
54+
})
55+
})
56+
4257
it('emits', () => {
4358
cy.mount(VueUiTreemap, {
4459
props: {

0 commit comments

Comments
 (0)