mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-17 03:11:00 +00:00
fix the tags playwright test (#23544)
This commit is contained in:
parent
4768c00fcf
commit
7334f529e8
@ -384,6 +384,12 @@ test('Classification Page', async ({ page }) => {
|
|||||||
await page.reload();
|
await page.reload();
|
||||||
await databaseSchemasPage;
|
await databaseSchemasPage;
|
||||||
|
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
|
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.locator('[data-testid="tags-container"]')
|
page.locator('[data-testid="tags-container"]')
|
||||||
).toContainText(tag);
|
).toContainText(tag);
|
||||||
@ -441,6 +447,11 @@ test('Classification Page', async ({ page }) => {
|
|||||||
// Verify term count is now 0 after deleting the tag
|
// Verify term count is now 0 after deleting the tag
|
||||||
await page.reload();
|
await page.reload();
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
|
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
|
|
||||||
await page.waitForSelector('[data-testid="side-panel-classification"]', {
|
await page.waitForSelector('[data-testid="side-panel-classification"]', {
|
||||||
state: 'visible',
|
state: 'visible',
|
||||||
});
|
});
|
||||||
|
|||||||
@ -43,11 +43,13 @@ export class ClassificationClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async visitPage(page: Page) {
|
async visitPage(page: Page) {
|
||||||
|
const getClassification = page.waitForResponse('/api/v1/classifications**');
|
||||||
|
const getTags = page.waitForResponse('/api/v1/tags**');
|
||||||
await sidebarClick(page, SidebarItem.TAGS);
|
await sidebarClick(page, SidebarItem.TAGS);
|
||||||
|
await getClassification;
|
||||||
const getTags = page.waitForResponse('/api/v1/tags*');
|
|
||||||
await page.waitForSelector('[data-testid="side-panel-classification"]');
|
|
||||||
await getTags;
|
await getTags;
|
||||||
|
await page.waitForSelector('[data-testid="side-panel-classification"]');
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(`[data-testid="side-panel-classification"]`)
|
.locator(`[data-testid="side-panel-classification"]`)
|
||||||
.filter({ hasText: this.data.displayName })
|
.filter({ hasText: this.data.displayName })
|
||||||
|
|||||||
@ -108,7 +108,7 @@ const TagPage = () => {
|
|||||||
tab?: string;
|
tab?: string;
|
||||||
}>();
|
}>();
|
||||||
const { permissions, getEntityPermission } = usePermissionProvider();
|
const { permissions, getEntityPermission } = usePermissionProvider();
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
const [tagItem, setTagItem] = useState<Tag>();
|
const [tagItem, setTagItem] = useState<Tag>();
|
||||||
const [assetModalVisible, setAssetModalVisible] = useState(false);
|
const [assetModalVisible, setAssetModalVisible] = useState(false);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user