2021-05-05 07:02:55 -05:00
|
|
|
import { selectors } from '@grafana/e2e-selectors';
|
|
|
|
|
2023-09-08 10:51:59 -05:00
|
|
|
import { e2e } from '../utils';
|
|
|
|
|
2023-09-13 07:24:20 -05:00
|
|
|
describe('Pie Chart Panel', () => {
|
|
|
|
beforeEach(() => {
|
2023-09-27 05:33:00 -05:00
|
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
it('Pie Chart rendering e2e tests', () => {
|
2021-05-05 07:02:55 -05:00
|
|
|
// open Panel Tests - Pie Chart
|
|
|
|
e2e.flows.openDashboard({ uid: 'lVE-2YFMz' });
|
|
|
|
|
2023-12-16 18:10:04 -06:00
|
|
|
cy.get(`[data-panelid=11] [data-testid^="${selectors.components.Panels.Visualization.PieChart.svgSlice}"]`).should(
|
2023-09-11 05:20:54 -05:00
|
|
|
'have.length',
|
|
|
|
5
|
|
|
|
);
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
2021-05-05 07:02:55 -05:00
|
|
|
});
|