fix pw issues for domain (#21986)

This commit is contained in:
Karan Hotchandani 2025-06-26 19:08:53 +05:30 committed by GitHub
parent c77f6d5db6
commit 064b43c21c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 8 deletions

View File

@ -259,9 +259,9 @@ test('Verify column lineage between table and topic', async ({ browser }) => {
await page.keyboard.type(tableServiceFqn);
await searchRes;
const lineageRes = page.waitForResponse('/api/v1/lineage/getLineage?*');
await page.click(`[data-testid="node-suggestion-${tableServiceFqn}"]`);
await page.waitForLoadState('networkidle');
await lineageRes;
const tableServiceNode = page.locator(
`[data-testid="lineage-node-${tableServiceFqn}"]`

View File

@ -114,6 +114,7 @@ export const selectDomain = async (page: Page, domain: Domain['data']) => {
.getByRole('menuitem', { name: domain.displayName })
.locator('span')
.click();
await page.waitForLoadState('networkidle');
};
export const selectSubDomain = async (
@ -135,12 +136,7 @@ export const selectSubDomain = async (
}
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 res;
await page.waitForLoadState('networkidle');
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']) => {
await selectDomain(page, domain);
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
await checkDomainDisplayName(page, domain.displayName);
await page.getByTestId('assets').click();
};