Files
grafana/e2e-playwright/panels-suite/table-sparkline.spec.ts
Paul Marbach 7626508842 Table: Update e2e tests to support tableNextGen (#108184)
* 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
2025-07-18 12:27:04 -04:00

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);
});
}
);