mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 04:21:50 +08:00

* Table: Force tableNextGen to be true for Playwright and false for Cypress * RDG query for body text contains the headers too * add some simple tests for row height * dial in the row height test a little more * more updates * filters, pagination * try this on CI * more updates to the tests * more tests * wait for some sort stuff to flush * replace class selectors for rdg * target the click to the anchor in the header
30 lines
766 B
TypeScript
30 lines
766 B
TypeScript
import { test, expect } from '@grafana/plugin-e2e';
|
|
|
|
test.use({
|
|
viewport: { width: 1280, height: 1080 },
|
|
featureToggles: {
|
|
tableNextGen: true,
|
|
},
|
|
});
|
|
|
|
test.describe(
|
|
'Panels test: Table - Sparkline',
|
|
{
|
|
tag: ['@panels'],
|
|
},
|
|
() => {
|
|
test('Tests sparkline tables are successfully rendered', async ({ gotoDashboardPage, selectors, page }) => {
|
|
await gotoDashboardPage({
|
|
uid: 'd6373b49-1957-4f00-9218-ee2120d3ecd9',
|
|
queryParams: new URLSearchParams({ editPanel: '2' }),
|
|
});
|
|
|
|
await expect(page.getByRole('grid')).toBeVisible();
|
|
|
|
const uplotCount = await page.locator('.uplot').count();
|
|
const rowCount = await page.getByRole('row').count();
|
|
expect(uplotCount).toBe(rowCount - 1);
|
|
});
|
|
}
|
|
);
|