mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 18:05:00 +00:00
fix the tags spec playwright flaky test (#22605)
This commit is contained in:
parent
5d658444c1
commit
4b06ae3560
@ -554,19 +554,19 @@ test('Search tag using classification display name should work', async ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Verify system classification term counts', async ({ page }) => {
|
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(
|
const classificationsResponse = page.waitForResponse(
|
||||||
(response) =>
|
(response) =>
|
||||||
response.url().includes('/api/v1/classifications') &&
|
response.url().includes('/api/v1/classifications') &&
|
||||||
response.url().includes('fields=termCount')
|
response.url().includes('fields=termCount')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await sidebarClick(page, SidebarItem.TAGS);
|
||||||
|
|
||||||
await classificationsResponse;
|
await classificationsResponse;
|
||||||
|
|
||||||
// Wait a bit for the UI to update
|
await page.waitForSelector('[data-testid="side-panel-classification"]', {
|
||||||
await page.waitForTimeout(1000);
|
state: 'visible',
|
||||||
|
});
|
||||||
|
|
||||||
// Get all classification elements
|
// Get all classification elements
|
||||||
const classificationElements = await page
|
const classificationElements = await page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user