Grafana-UI: BarGauge docs (#27188)

* Grafana-UI: Add mdx file

* Grafana-UI: remove _BarGauge.scss

* Grafana-UI: Update snapshot

* Grafana-UI: Fix tests

* Grafana-UI: Use selector
This commit is contained in:
Alex Khomenko
2020-08-26 14:44:08 +03:00
committed by GitHub
parent 4cd42ed898
commit a1e6090008
10 changed files with 73 additions and 21 deletions

View File

@@ -1,8 +1,9 @@
import { e2e } from '@grafana/e2e';
import { selectors } from '@grafana/e2e-selectors';
e2e.scenario({
describeName: 'Bar Gauge Panel',
itName: 'Bar Guage rendering e2e tests',
itName: 'Bar Gauge rendering e2e tests',
addScenarioDataSource: false,
addScenarioDashBoard: false,
skipScenario: false,
@@ -11,7 +12,7 @@ e2e.scenario({
e2e.flows.openDashboard({ uid: 'O6f11TZWk' });
e2e()
.get('#panel-6 .bar-gauge__value')
.get(`#panel-6 [aria-label^="${selectors.components.Panels.Visualization.BarGauge.value}"]`)
.should('have.css', 'color', 'rgb(242, 73, 92)')
.contains('100');
},