fixed tags flaky test (#22677)

Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com>
This commit is contained in:
Dhruv Parmar 2025-08-01 11:46:06 +05:30 committed by GitHub
parent 9cb146591c
commit 4364d9cea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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({