From 9b14538a04581439e00eab5254783d9cb0e4735c Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Mon, 6 Oct 2025 15:36:34 +0200 Subject: [PATCH] fix e2e tests for QueryEditor.spec.ts --- tests/QueryEditor.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/QueryEditor.spec.ts b/tests/QueryEditor.spec.ts index 4650ae08..88a54ba6 100644 --- a/tests/QueryEditor.spec.ts +++ b/tests/QueryEditor.spec.ts @@ -21,5 +21,10 @@ test('QueryEditor smoke test', async ({ panelEditPage, page }) => { await panelEditPage.getByGrafanaSelector(components.QueryEditor.Repository.input).fill('grafana-github-datasource'); await panelEditPage.refreshPanel(); - await expect(page.getByRole('cell', { name: 'grafana-github-datasource v1.5.7' })).toBeVisible(); + try { + // Newer versions of table view uses gridcell instead of cell + await expect(page.getByRole('gridcell', { name: 'grafana-github-datasource v1.5.7' })).toBeVisible(); + } catch (error) { + await expect(page.getByRole('cell', { name: 'grafana-github-datasource v1.5.7' })).toBeVisible(); + } });