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