mirror of
https://github.com/apache/superset.git
synced 2026-04-24 10:35:01 +00:00
feat: add ECharts Pie chart (#10966)
* feat: introduce echarts pie chart * lint * remove viz.py shim * remove tests * fix cypress test * fix test
This commit is contained in:
@@ -38,18 +38,18 @@ describe('Visualization > Pie', () => {
|
||||
|
||||
function verify(formData) {
|
||||
cy.visitChartByParams(JSON.stringify(formData));
|
||||
cy.verifySliceSuccess({ waitAlias: '@getJson', chartSelector: 'svg' });
|
||||
cy.verifySliceSuccess({ waitAlias: '@getJson' });
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
cy.server();
|
||||
cy.login();
|
||||
cy.route('POST', '/superset/explore_json/**').as('getJson');
|
||||
cy.route('POST', '/api/v1/chart/data').as('getJson');
|
||||
});
|
||||
|
||||
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', () => {
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user