Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 21, 2020
1 parent c900d87 commit ba75cdd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Visualization > Pie', () => {

function verify(formData) {
cy.visitChartByParams(JSON.stringify(formData));
cy.verifySliceSuccess({ waitAlias: '@getJson', chartSelector: 'svg' });
cy.verifySliceSuccess({ waitAlias: '@getJson' });
}

beforeEach(() => {
Expand All @@ -49,7 +49,7 @@ describe('Visualization > Pie', () => {

it('should work with ad-hoc metric', () => {
verify(PIE_FORM_DATA);
cy.get('.chart-container .nv-pie .nv-slice path').should('have.length', 2);
cy.get('.chart-container .pie canvas').should('have.length', 1);
});

it('should work with simple filter', () => {
Expand All @@ -67,6 +67,6 @@ describe('Visualization > Pie', () => {
},
],
});
cy.get('.chart-container .nv-pie .nv-slice path').should('have.length', 1);
cy.get('.chart-container .pie canvas').should('have.length', 1);
});
});

0 comments on commit ba75cdd

Please sign in to comment.