2023-09-08 10:51:59 -05:00
|
|
|
import { e2e } from '../utils';
|
2021-01-11 06:25:08 -06:00
|
|
|
|
2023-09-13 07:24:20 -05:00
|
|
|
describe('Gauge 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('Gauge rendering e2e tests', () => {
|
2021-01-11 06:25:08 -06:00
|
|
|
// open Panel Tests - Gauge
|
|
|
|
e2e.flows.openDashboard({ uid: '_5rDmaQiz' });
|
|
|
|
|
|
|
|
// check that gauges are rendered
|
2023-09-11 05:20:54 -05:00
|
|
|
cy.get('body').find(`.flot-base`).should('have.length', 16);
|
2021-01-11 06:25:08 -06:00
|
|
|
|
|
|
|
// check that no panel errors exist
|
|
|
|
e2e.components.Panels.Panel.headerCornerInfo('error').should('not.exist');
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
2021-01-11 06:25:08 -06:00
|
|
|
});
|