From b1bcc1c98b6226413a55370b7f0eaeb20b94e000 Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Sun, 18 May 2025 13:10:45 +0530 Subject: [PATCH] fix(test): tags & glossary term failure (#21254) * fix(test): tags failure * fix glossary term tests (cherry picked from commit 764b1702b4c97b99c016dd950176a66f84e54746) --- .../src/main/resources/ui/playwright/utils/entity.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts index 50c8fe8486d..6623d61e952 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts @@ -394,6 +394,8 @@ export const assignTag = async ( await page.getByTestId('saveAssociatedTag').click(); + await expect(page.getByTestId('saveAssociatedTag')).not.toBeVisible(); + await expect( page .getByTestId(parentId) @@ -482,7 +484,7 @@ export const removeTag = async (page: Page, tags: string[]) => { await page.getByTestId('saveAssociatedTag').click(); await patchRequest; - expect( + await expect( page .getByTestId('KnowledgePanel.Tags') .getByTestId('tags-container') @@ -573,6 +575,8 @@ export const assignGlossaryTerm = async ( await page.getByTestId('saveAssociatedTag').click(); + await expect(page.getByTestId('saveAssociatedTag')).not.toBeVisible(); + await expect( page .getByTestId('KnowledgePanel.GlossaryTerms') @@ -620,6 +624,8 @@ export const assignGlossaryTermToChildren = async ({ await page.getByTestId('saveAssociatedTag').click(); + await expect(page.getByTestId('saveAssociatedTag')).not.toBeVisible(); + await patchRequest; await expect( @@ -662,7 +668,7 @@ export const removeGlossaryTerm = async ( await page.getByTestId('saveAssociatedTag').click(); await patchRequest; - expect( + await expect( page .getByTestId('KnowledgePanel.GlossaryTerms') .getByTestId('glossary-container')