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