chore: E2E tests for the Drill to detail modal (#21187)

* Add example ECharts Dashboard

* [WIP] E2E test

* Add echarts interactions

* Lint

* DRY
This commit is contained in:
Geido
2022-08-29 11:25:27 +03:00
committed by GitHub
parent ccb293a083
commit f017f98b88
9 changed files with 548 additions and 7 deletions

View File

@@ -35,10 +35,14 @@ export default function RowCountLabel(props: RowCountLabelProps) {
limitReached || (rowcount === 0 && !loading) ? 'danger' : 'default';
const formattedRowCount = getNumberFormatter()(rowcount);
const label = (
<Label type={type} data-test="row-count-label">
{loading
? t('Loading...')
: tn('%s row', '%s rows', rowcount, formattedRowCount)}
<Label type={type}>
{loading ? (
t('Loading...')
) : (
<span data-test="row-count-label">
{tn('%s row', '%s rows', rowcount, formattedRowCount)}
</span>
)}
</Label>
);
return limitReached ? (