mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-28 07:58:31 +00:00
fixed tags flaky test (#22677)
Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com>
This commit is contained in:
parent
9cb146591c
commit
4364d9cea4
@ -579,10 +579,14 @@ test('Verify system classification term counts', async ({ page }) => {
|
||||
|
||||
for (const element of classificationElements) {
|
||||
const text = await element.textContent();
|
||||
if (text?.includes('Tier') && text?.includes('5')) {
|
||||
const filterCountText = await element
|
||||
.getByTestId('filter-count')
|
||||
.textContent();
|
||||
const filterCount = parseInt(filterCountText?.trim() || '0', 10);
|
||||
if (text?.includes('Tier') && filterCount > 0) {
|
||||
tierFound = true;
|
||||
}
|
||||
if (text?.includes('PII') && text?.includes('3')) {
|
||||
if (text?.includes('PII') && filterCount > 0) {
|
||||
piiFound = true;
|
||||
}
|
||||
}
|
||||
@ -626,6 +630,7 @@ test('Verify Owner Add Delete', async ({ page }) => {
|
||||
).toBeVisible();
|
||||
|
||||
await classification1.visitPage(page);
|
||||
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await removeOwner({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user