mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +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*');
|
const getTags = page.waitForResponse('/api/v1/tags*');
|
||||||
await sidebarClick(page, SidebarItem.TAGS);
|
await sidebarClick(page, SidebarItem.TAGS);
|
||||||
await getTags;
|
await getTags;
|
||||||
|
const classificationResponse = page.waitForResponse(
|
||||||
|
`/api/v1/tags?*parent=${encodeURIComponent(NEW_CLASSIFICATION.name)}*`
|
||||||
|
);
|
||||||
await page
|
await page
|
||||||
.locator(`[data-testid="side-panel-classification"]`)
|
.locator(`[data-testid="side-panel-classification"]`)
|
||||||
.filter({ hasText: NEW_CLASSIFICATION.displayName })
|
.filter({ hasText: NEW_CLASSIFICATION.displayName })
|
||||||
.click();
|
.click();
|
||||||
|
await classificationResponse;
|
||||||
|
|
||||||
await expect(page.locator('.activeCategory')).toContainText(
|
await expect(page.locator('.activeCategory')).toContainText(
|
||||||
NEW_CLASSIFICATION.displayName
|
NEW_CLASSIFICATION.displayName
|
||||||
@ -324,10 +328,14 @@ test('Classification Page', async ({ page }) => {
|
|||||||
const getTags = page.waitForResponse('/api/v1/tags*');
|
const getTags = page.waitForResponse('/api/v1/tags*');
|
||||||
await sidebarClick(page, SidebarItem.TAGS);
|
await sidebarClick(page, SidebarItem.TAGS);
|
||||||
await getTags;
|
await getTags;
|
||||||
|
const classificationResponse = page.waitForResponse(
|
||||||
|
`/api/v1/tags?*parent=${encodeURIComponent(NEW_CLASSIFICATION.name)}*`
|
||||||
|
);
|
||||||
await page
|
await page
|
||||||
.locator(`[data-testid="side-panel-classification"]`)
|
.locator(`[data-testid="side-panel-classification"]`)
|
||||||
.filter({ hasText: NEW_CLASSIFICATION.displayName })
|
.filter({ hasText: NEW_CLASSIFICATION.displayName })
|
||||||
.click();
|
.click();
|
||||||
|
await classificationResponse;
|
||||||
|
|
||||||
await expect(page.locator('.activeCategory')).toContainText(
|
await expect(page.locator('.activeCategory')).toContainText(
|
||||||
NEW_CLASSIFICATION.displayName
|
NEW_CLASSIFICATION.displayName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user