grafana/e2e/various-suite/pie-chart.spec.ts

20 lines
512 B
TypeScript
Raw Normal View History

2021-05-05 07:02:55 -05:00
import { selectors } from '@grafana/e2e-selectors';
import { e2e } from '../utils';
describe('Pie Chart Panel', () => {
beforeEach(() => {
e2e.flows.login(e2e.env('USERNAME'), e2e.env('PASSWORD'));
});
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' });
cy.get(`[data-panelid=11] [aria-label^="${selectors.components.Panels.Visualization.PieChart.svgSlice}"]`).should(
'have.length',
5
);
});
2021-05-05 07:02:55 -05:00
});