Skip to content

Commit e74aed9

Browse files
committed
Tests - Improve VueUiStripPlot component test
1 parent 577fc53 commit e74aed9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/components/vue-ui-strip-plot.cy.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,27 @@ describe('<VueUiStripPlot />', () => {
6363
});
6464
});
6565
});
66+
67+
it('emits', () => {
68+
cy.mount(VueUiStripPlot, {
69+
props: {
70+
dataset,
71+
config
72+
}
73+
}).then(({ wrapper }) => {
74+
cy.log('@selectDatapoint');
75+
cy.get('circle').eq(8).click({ force: true }).then(() => {
76+
expect(wrapper.emitted('selectDatapoint')).to.exist
77+
expect(wrapper.emitted('selectDatapoint')[0][0]).to.have.keys(
78+
'color',
79+
'id',
80+
'name',
81+
'parentId',
82+
'value',
83+
'x',
84+
'y'
85+
);
86+
});
87+
});
88+
});
6689
});

0 commit comments

Comments
 (0)