Skip to content

Commit 87e2265

Browse files
committed
Tests - Improve VueUiOnion component test
1 parent c66d9e1 commit 87e2265

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,19 @@ describe('<VueUiOnion />', () => {
4646
});
4747
});
4848
});
49+
50+
it('emits', () => {
51+
cy.viewport(500, 580);
52+
cy.mount(VueUiOnion, {
53+
props: {
54+
dataset,
55+
config
56+
}
57+
}).then(({ wrapper }) => {
58+
cy.log('@selectLegend');
59+
cy.get('[data-cy-legend-item]').first().click({ force: true }).then(() => {
60+
expect(wrapper.emitted('selectLegend')).to.exist;
61+
});
62+
});
63+
});
4964
});

0 commit comments

Comments
 (0)