mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-17 11:43:54 +00:00
fixed flaky metrics tests (#21000)
This commit is contained in:
parent
8314fdf8d0
commit
defa0525c1
@ -136,6 +136,12 @@ test.describe('Listing page and add Metric flow should work', () => {
|
||||
'Track the health of your data assets with metrics.'
|
||||
);
|
||||
|
||||
const pageSizeDropdown = page.getByTestId('page-size-selection-dropdown');
|
||||
if (await pageSizeDropdown.isVisible()) {
|
||||
await pageSizeDropdown.click();
|
||||
await page.getByText('25 / Page').click();
|
||||
}
|
||||
|
||||
await expect(
|
||||
page.getByRole('cell', { name: 'Name', exact: true })
|
||||
).toBeVisible();
|
||||
|
@ -1248,10 +1248,11 @@ export const softDeleteEntity = async (
|
||||
await page.click('[data-testid="confirm-button"]');
|
||||
|
||||
await deleteResponse;
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await toastNotification(
|
||||
page,
|
||||
/deleted successfully!/,
|
||||
/(deleted successfully!|Delete operation initiated)/,
|
||||
BIG_ENTITY_DELETE_TIMEOUT
|
||||
);
|
||||
|
||||
@ -1319,10 +1320,10 @@ export const hardDeleteEntity = async (
|
||||
);
|
||||
await page.click('[data-testid="confirm-button"]');
|
||||
await deleteResponse;
|
||||
|
||||
await page.waitForLoadState('networkidle');
|
||||
await toastNotification(
|
||||
page,
|
||||
/deleted successfully!/,
|
||||
/(deleted successfully!|Delete operation initiated)/,
|
||||
BIG_ENTITY_DELETE_TIMEOUT
|
||||
);
|
||||
};
|
||||
|
@ -175,6 +175,7 @@ export const updateRelatedMetric = async (
|
||||
hasText: dataAsset.entity.name,
|
||||
})
|
||||
.click();
|
||||
|
||||
await page.locator('[data-testid="saveRelatedMetrics"]').click();
|
||||
|
||||
await patchPromise;
|
||||
|
Loading…
x
Reference in New Issue
Block a user