mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
Playwright: fixed Tags AUT test (#17852)
This commit is contained in:
parent
9a96ddd4ae
commit
e78450a5ec
@ -297,10 +297,14 @@ test('Classification Page', async ({ page }) => {
|
||||
const getTags = page.waitForResponse('/api/v1/tags*');
|
||||
await sidebarClick(page, SidebarItem.TAGS);
|
||||
await getTags;
|
||||
const classificationResponse = page.waitForResponse(
|
||||
`/api/v1/tags?*parent=${encodeURIComponent(NEW_CLASSIFICATION.name)}*`
|
||||
);
|
||||
await page
|
||||
.locator(`[data-testid="side-panel-classification"]`)
|
||||
.filter({ hasText: NEW_CLASSIFICATION.displayName })
|
||||
.click();
|
||||
await classificationResponse;
|
||||
|
||||
await expect(page.locator('.activeCategory')).toContainText(
|
||||
NEW_CLASSIFICATION.displayName
|
||||
@ -324,10 +328,14 @@ test('Classification Page', async ({ page }) => {
|
||||
const getTags = page.waitForResponse('/api/v1/tags*');
|
||||
await sidebarClick(page, SidebarItem.TAGS);
|
||||
await getTags;
|
||||
const classificationResponse = page.waitForResponse(
|
||||
`/api/v1/tags?*parent=${encodeURIComponent(NEW_CLASSIFICATION.name)}*`
|
||||
);
|
||||
await page
|
||||
.locator(`[data-testid="side-panel-classification"]`)
|
||||
.filter({ hasText: NEW_CLASSIFICATION.displayName })
|
||||
.click();
|
||||
await classificationResponse;
|
||||
|
||||
await expect(page.locator('.activeCategory')).toContainText(
|
||||
NEW_CLASSIFICATION.displayName
|
||||
|
Loading…
x
Reference in New Issue
Block a user