From 9db5ba9beeeadf2b75d0d604aa3374139ca76f22 Mon Sep 17 00:00:00 2001 From: Shrinath Rao Date: Thu, 3 Sep 2026 10:43:37 +0000 Subject: [PATCH] test: deflake dashboard column filter-search value-list race (#14157) --- .../Dashboards/dashboard-table-column-filtering.spec.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/ui-testing/playwright-tests/Dashboards/dashboard-table-column-filtering.spec.js b/tests/ui-testing/playwright-tests/Dashboards/dashboard-table-column-filtering.spec.js index 90dd99077b..e1c011b73b 100644 --- a/tests/ui-testing/playwright-tests/Dashboards/dashboard-table-column-filtering.spec.js +++ b/tests/ui-testing/playwright-tests/Dashboards/dashboard-table-column-filtering.spec.js @@ -155,11 +155,9 @@ test.describe("Dashboard Table — Column Filtering (PR #12531)", () => { const panel = await openColumnFilter(page, 0); const items = columnFilter.valueItems(panel); + // Value
  • s populate a reactive tick after the panel shell becomes visible; poll so count() never snapshots the still-filling list and reads <=1. + await expect.poll(async () => items.count(), { timeout: 10000 }).toBeGreaterThan(1); const initialCount = await items.count(); - // Must have more than the eventual 1-item "no matches" placeholder, otherwise a - // panel that failed to load any values at all would be indistinguishable from - // "search narrowed the list down to nothing". - expect(initialCount).toBeGreaterThan(1); // A search term that matches nothing real should collapse the list to the // "no matches" placeholder row.