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