From eb16d6ac8487f220084cecb28cc47f09f30dd6d9 Mon Sep 17 00:00:00 2001 From: Pranita Fulsundar Date: Thu, 15 May 2025 17:57:03 +0530 Subject: [PATCH] chore(ui): fix glossary playwright tests (#21198) * chore: fix glossary playwright tests * remove timeout for loader * fix test --- .../src/main/resources/ui/playwright/utils/glossary.ts | 5 ++++- .../EntitySummaryPanel/EntitySummaryPanel.component.tsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts index 7e5b7618271..b5e4a11495d 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts @@ -598,7 +598,10 @@ export const validateGlossaryTerm = async ( const termSelector = `[data-row-key="${escapedFqn}"]`; const statusSelector = `[data-testid="${escapedFqn}-status"]`; - await expect(page.locator('[data-testid="loader"]')).toBeHidden(); + await expect( + page.getByTestId('glossary-terms-table').getByTestId('loader') + ).toBeHidden(); + await expect(page.locator('[data-testid="loader"]')).toHaveCount(0); await expect( page.getByTestId('glossary-terms-table').getByText('Terms') diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/EntitySummaryPanel.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/EntitySummaryPanel.component.tsx index cb8b7ad198d..c2f6dfbbb4c 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/EntitySummaryPanel.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Explore/EntitySummaryPanel/EntitySummaryPanel.component.tsx @@ -86,6 +86,7 @@ export default function EntitySummaryPanel({ if (!viewPermission) { return (