2020-08-26 06:44:08 -05:00
|
|
|
import { selectors } from '@grafana/e2e-selectors';
|
2020-03-16 08:35:55 -05:00
|
|
|
|
2023-09-08 10:51:59 -05:00
|
|
|
import { e2e } from '../utils';
|
|
|
|
|
2023-09-13 07:24:20 -05:00
|
|
|
describe('Bar 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('Bar Gauge rendering e2e tests', () => {
|
2020-03-16 08:35:55 -05:00
|
|
|
// open Panel Tests - Bar Gauge
|
2020-06-26 12:33:05 -05:00
|
|
|
e2e.flows.openDashboard({ uid: 'O6f11TZWk' });
|
2020-03-16 08:35:55 -05:00
|
|
|
|
2023-09-11 05:20:54 -05:00
|
|
|
cy.get(`[data-panelid=6] [data-testid^="${selectors.components.Panels.Visualization.BarGauge.valueV2}"]`)
|
2020-03-16 08:35:55 -05:00
|
|
|
.should('have.css', 'color', 'rgb(242, 73, 92)')
|
|
|
|
.contains('100');
|
2023-09-13 07:24:20 -05:00
|
|
|
});
|
2020-03-16 08:35:55 -05:00
|
|
|
});
|