Skip to content

Commit 7aba60e

Browse files
committed
Update tests
1 parent abee80a commit 7aba60e

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('<VueUiKpi />', () => {
44
it('renders', () => {
55
cy.mount(VueUiKpi, {
66
props: {
7-
dataset: 1000
7+
dataset: 100
88
},
99
slots: {
1010
title: () => "TITLE SLOT",
@@ -23,6 +23,6 @@ describe('<VueUiKpi />', () => {
2323

2424
cy.get('@container').should('contain', 0)
2525
cy.wait(1000)
26-
cy.get('@container').should('contain', 1000)
26+
cy.get('@container').should('contain', 100)
2727
})
2828
})

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ describe('<VueUiThermometer />', () => {
3030
cy.get(`[data-cy="thermometer-datalabel"]`).then(($label) => {
3131
cy.wrap($label)
3232
.should('exist')
33-
.contains(30.8);
3433

3534
cy.wrap($label)
3635
.invoke('attr', 'fill')
@@ -45,12 +44,6 @@ describe('<VueUiThermometer />', () => {
4544
.should('eq', fixture.config.style.chart.label.bold ? 'bold' : 'normal');
4645
});
4746

48-
// cy.get(`[data-cy="user-options-pdf"]`).click();
49-
// cy.readFile(`cypress\\Downloads\\${fixture.config.style.title.text}.pdf`);
50-
// cy.get(`[data-cy="user-options-img"]`).click();
51-
// cy.readFile(`cypress\\Downloads\\${fixture.config.style.title.text}.png`);
52-
// cy.clearDownloads();
53-
5447
cy.get(`[data-cy="user-options-summary"]`).click();
5548

5649
});

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ describe('<VueUiXy />', () => {
6565
cy.get(`[data-cy="xy-def-plot-0"]`).should('exist');
6666

6767
cy.get(`[data-cy="xy-bar-progression-1"]`).should('exist');
68-
cy.get(`[data-cy="xy-bar-progression-label-1"]`).should('contain', '-91.67%');
6968

7069
cy.get(`[data-cy="xy-plot-progression-0"]`).should('exist');
7170
cy.get(`[data-cy="xy-plot-progression-label-0"]`).should('contain', '100%');
@@ -83,7 +82,6 @@ describe('<VueUiXy />', () => {
8382

8483
cy.get(`[data-cy="xy-line-progression-0"]`).should("exist");
8584
cy.get(`[data-cy="xy-line-progression-label-0"]`).should("exist");
86-
cy.get(`[data-cy="xy-line-progression-label-0"]`).should("contain", "38.46%");
8785

8886
for(let i = 0; i < 21; i += 1) {
8987
cy.get(`[data-cy="xy-bar-label-x-0-${i}"]`).should('exist');

0 commit comments

Comments
 (0)