mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-10 08:16:25 +00:00
fix metrics test (#22781)
(cherry picked from commit 78776021678ac462524dc5699a4b5f048a087c7e)
This commit is contained in:
parent
e99684dc9c
commit
e2155e1b20
@ -184,14 +184,24 @@ export const updateRelatedMetric = async (
|
|||||||
state: 'visible',
|
state: 'visible',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Wait for the metrics API call to complete
|
||||||
|
const metricsResponsePromise1 = page.waitForResponse(
|
||||||
|
'/api/v1/metrics/name/*?fields=*'
|
||||||
|
);
|
||||||
await page
|
await page
|
||||||
.getByRole('link', { name: dataAsset.entity.name, exact: true })
|
.getByRole('link', { name: dataAsset.entity.name, exact: true })
|
||||||
.click();
|
.click();
|
||||||
|
await metricsResponsePromise1;
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
|
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
|
||||||
|
|
||||||
|
// Wait for the metrics API call to complete
|
||||||
|
const metricsResponsePromise2 = page.waitForResponse(
|
||||||
|
'/api/v1/metrics/name/*?fields=*'
|
||||||
|
);
|
||||||
await page.getByRole('link', { name: title }).click();
|
await page.getByRole('link', { name: title }).click();
|
||||||
|
await metricsResponsePromise2;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const addMetric = async (page: Page) => {
|
export const addMetric = async (page: Page) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user