From 018623cdfc8c667c40b09edd868339ac21934e3b Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Mon, 6 Oct 2025 15:25:15 +0530 Subject: [PATCH] Minor: fix the flaky tag spec playwright failure (#23726) --- .../main/resources/ui/playwright/e2e/Pages/Tags.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 09324cacc6e..cc480504b65 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 @@ -594,7 +594,12 @@ test('Verify system classification term counts', async ({ page }) => { .locator('[data-testid="side-panel-classification"]') .filter({ hasText: 'Tier' }); - await expect(tierElement.getByTestId('filter-count')).toContainText('5'); + const tierCountText = await tierElement + .getByTestId('filter-count') + .textContent(); + const tierCount = parseInt(tierCountText?.trim() || '0'); + + expect(tierCount).toBeGreaterThanOrEqual(5); const piiElement = page .locator('[data-testid="side-panel-classification"]')