fix the tags spec playwright flaky test (#22605)

This commit is contained in:
Ashish Gupta 2025-07-28 11:36:03 +05:30 committed by GitHub
parent 5d658444c1
commit 4b06ae3560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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