mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* remove scenario wrapping in cypress tests * remove more hardcoded logins * don't forget the various suite! * make sure we log in for every test * fix afterAll revert * stability
20 lines
512 B
TypeScript
20 lines
512 B
TypeScript
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', () => {
|
|
// 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
|
|
);
|
|
});
|
|
});
|