mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-29 17:49:14 +00:00
fix pw issues for domain (#21986)
This commit is contained in:
parent
c77f6d5db6
commit
064b43c21c
@ -259,9 +259,9 @@ test('Verify column lineage between table and topic', async ({ browser }) => {
|
|||||||
await page.keyboard.type(tableServiceFqn);
|
await page.keyboard.type(tableServiceFqn);
|
||||||
await searchRes;
|
await searchRes;
|
||||||
|
|
||||||
|
const lineageRes = page.waitForResponse('/api/v1/lineage/getLineage?*');
|
||||||
await page.click(`[data-testid="node-suggestion-${tableServiceFqn}"]`);
|
await page.click(`[data-testid="node-suggestion-${tableServiceFqn}"]`);
|
||||||
|
await lineageRes;
|
||||||
await page.waitForLoadState('networkidle');
|
|
||||||
|
|
||||||
const tableServiceNode = page.locator(
|
const tableServiceNode = page.locator(
|
||||||
`[data-testid="lineage-node-${tableServiceFqn}"]`
|
`[data-testid="lineage-node-${tableServiceFqn}"]`
|
||||||
|
|||||||
@ -114,6 +114,7 @@ export const selectDomain = async (page: Page, domain: Domain['data']) => {
|
|||||||
.getByRole('menuitem', { name: domain.displayName })
|
.getByRole('menuitem', { name: domain.displayName })
|
||||||
.locator('span')
|
.locator('span')
|
||||||
.click();
|
.click();
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
};
|
};
|
||||||
|
|
||||||
export const selectSubDomain = async (
|
export const selectSubDomain = async (
|
||||||
@ -135,12 +136,7 @@ export const selectSubDomain = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
await page.getByTestId('subdomains').getByText('Sub Domains').click();
|
await page.getByTestId('subdomains').getByText('Sub Domains').click();
|
||||||
const res = page.waitForResponse(
|
|
||||||
'/api/v1/search/query?*&index=data_product_search_index*'
|
|
||||||
);
|
|
||||||
await page.getByTestId(subDomain.name).click();
|
await page.getByTestId(subDomain.name).click();
|
||||||
await res;
|
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.locator('[data-testid="loader"]').waitFor({ state: 'detached' });
|
await page.locator('[data-testid="loader"]').waitFor({ state: 'detached' });
|
||||||
};
|
};
|
||||||
@ -183,7 +179,6 @@ export const selectDataProduct = async (
|
|||||||
|
|
||||||
const goToAssetsTab = async (page: Page, domain: Domain['data']) => {
|
const goToAssetsTab = async (page: Page, domain: Domain['data']) => {
|
||||||
await selectDomain(page, domain);
|
await selectDomain(page, domain);
|
||||||
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
|
|
||||||
await checkDomainDisplayName(page, domain.displayName);
|
await checkDomainDisplayName(page, domain.displayName);
|
||||||
await page.getByTestId('assets').click();
|
await page.getByTestId('assets').click();
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user