From 4b06ae3560cd7bef2b94aa8b74b465690c1b3b56 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Mon, 28 Jul 2025 11:36:03 +0530 Subject: [PATCH] fix the tags spec playwright flaky test (#22605) --- .../resources/ui/playwright/e2e/Pages/Tags.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Tags.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Tags.spec.ts index 7bfbe891114..9f2ccdb7b28 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Tags.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Tags.spec.ts @@ -554,19 +554,19 @@ test('Search tag using classification display name should work', async ({ }); test('Verify system classification term counts', async ({ page }) => { - // Navigate to tags page - await sidebarClick(page, SidebarItem.TAGS); - - // Wait for classifications to load with termCount field const classificationsResponse = page.waitForResponse( (response) => response.url().includes('/api/v1/classifications') && response.url().includes('fields=termCount') ); + + await sidebarClick(page, SidebarItem.TAGS); + await classificationsResponse; - // Wait a bit for the UI to update - await page.waitForTimeout(1000); + await page.waitForSelector('[data-testid="side-panel-classification"]', { + state: 'visible', + }); // Get all classification elements const classificationElements = await page