mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-19 04:41:02 +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.'
|
'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(
|
await expect(
|
||||||
page.getByRole('cell', { name: 'Name', exact: true })
|
page.getByRole('cell', { name: 'Name', exact: true })
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
@ -1248,10 +1248,11 @@ export const softDeleteEntity = async (
|
|||||||
await page.click('[data-testid="confirm-button"]');
|
await page.click('[data-testid="confirm-button"]');
|
||||||
|
|
||||||
await deleteResponse;
|
await deleteResponse;
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
|
|
||||||
await toastNotification(
|
await toastNotification(
|
||||||
page,
|
page,
|
||||||
/deleted successfully!/,
|
/(deleted successfully!|Delete operation initiated)/,
|
||||||
BIG_ENTITY_DELETE_TIMEOUT
|
BIG_ENTITY_DELETE_TIMEOUT
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1319,10 +1320,10 @@ export const hardDeleteEntity = async (
|
|||||||
);
|
);
|
||||||
await page.click('[data-testid="confirm-button"]');
|
await page.click('[data-testid="confirm-button"]');
|
||||||
await deleteResponse;
|
await deleteResponse;
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
await toastNotification(
|
await toastNotification(
|
||||||
page,
|
page,
|
||||||
/deleted successfully!/,
|
/(deleted successfully!|Delete operation initiated)/,
|
||||||
BIG_ENTITY_DELETE_TIMEOUT
|
BIG_ENTITY_DELETE_TIMEOUT
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -175,6 +175,7 @@ export const updateRelatedMetric = async (
|
|||||||
hasText: dataAsset.entity.name,
|
hasText: dataAsset.entity.name,
|
||||||
})
|
})
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page.locator('[data-testid="saveRelatedMetrics"]').click();
|
await page.locator('[data-testid="saveRelatedMetrics"]').click();
|
||||||
|
|
||||||
await patchPromise;
|
await patchPromise;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user