diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/entityPanel.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/entityPanel.ts index def4a3c3db45..a0657ce506af 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/entityPanel.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/entityPanel.ts @@ -58,12 +58,14 @@ export const openEntitySummaryPanel = async ({ endpoint, fullyQualifiedName, exploreTab, + dataAssetTypeLeftPanelTestId, }: { page: Page; entityName: string; endpoint?: string; fullyQualifiedName?: string; exploreTab?: string; + dataAssetTypeLeftPanelTestId?: string; }) => { if (endpoint && ENDPOINT_TO_FILTER_MAP[endpoint]) { await page.getByTestId('global-search-selector').waitFor({ @@ -107,6 +109,12 @@ export const openEntitySummaryPanel = async ({ return; } + if (dataAssetTypeLeftPanelTestId) { + const knowledgeCenterItem = page.getByTestId(dataAssetTypeLeftPanelTestId); + await knowledgeCenterItem.waitFor({ state: 'visible' }); + await knowledgeCenterItem.click(); + } + await page .locator('[data-testid^="table-data-card"]') .filter({ diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/explore.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/explore.ts index 1105c53f3646..6ad19fbb4ad2 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/explore.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/explore.ts @@ -359,12 +359,14 @@ export const navigateToExploreAndSelectEntity = async ({ endpoint, fullyQualifiedName, exploreTab, + dataAssetTypeLeftPanelTestId, }: { page: Page; entityName: string; endpoint?: string; fullyQualifiedName?: string; exploreTab?: string; + dataAssetTypeLeftPanelTestId?: string; }) => { await redirectToExplorePage(page); @@ -378,6 +380,7 @@ export const navigateToExploreAndSelectEntity = async ({ endpoint, fullyQualifiedName, exploreTab, + dataAssetTypeLeftPanelTestId, }); };