mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
7bca69849f
* Mark Scenes feature toggles as GA * Move old arch e2e to a new folder * Run E2E on scenes by default * Upgrade e2e-selectors to ensure the tests in Playwright works
21 lines
580 B
TypeScript
21 lines
580 B
TypeScript
import { selectors } from '@grafana/e2e-selectors';
|
|
|
|
import { e2e } from '../utils';
|
|
|
|
describe('Bar Gauge Panel', () => {
|
|
beforeEach(() => {
|
|
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
|
});
|
|
|
|
it('Bar Gauge rendering e2e tests', () => {
|
|
// open Panel Tests - Bar Gauge
|
|
e2e.flows.openDashboard({ uid: 'O6f11TZWk' });
|
|
|
|
cy.get(
|
|
`[data-viz-panel-key="panel-6"] [data-testid^="${selectors.components.Panels.Visualization.BarGauge.valueV2}"]`
|
|
)
|
|
.should('have.css', 'color', 'rgb(242, 73, 92)')
|
|
.contains('100');
|
|
});
|
|
});
|