Skip to content

Commit f4754c2

Browse files
committed
(playwright) Stabilize Playwright export coverage and replace toast-based team deletion checks (#27470)
(cherry picked from commit df46180)
1 parent 1eced60 commit f4754c2

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TeamsHierarchy.spec.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import { expect, test } from '@playwright/test';
1414
import { DELETE_TERM } from '../../constant/common';
1515
import { PLAYWRIGHT_BASIC_TEST_TAG_OBJ } from '../../constant/config';
1616
import { GlobalSettingOptions } from '../../constant/settings';
17-
import {
18-
redirectToHomePage,
19-
toastNotification,
20-
uuid,
21-
} from '../../utils/common';
17+
import { redirectToHomePage, uuid } from '../../utils/common';
2218
import { settingClick } from '../../utils/sidebar';
23-
import { addTeamHierarchy, getNewTeamDetails } from '../../utils/team';
19+
import {
20+
addTeamHierarchy,
21+
getNewTeamDetails,
22+
searchTeam,
23+
} from '../../utils/team';
2424

2525
// use the admin user to login
2626
test.use({ storageState: 'playwright/.auth/admin.json' });
@@ -144,10 +144,9 @@ test.describe(
144144
await page.click('[data-testid="confirm-button"]');
145145
await deleteResponse;
146146

147-
await toastNotification(
148-
page,
149-
`"${businessTeamName}" deleted successfully!`
150-
);
147+
await test.step('Deleted team is no longer searchable', async () => {
148+
await searchTeam(page, businessTeamName, { expectEmptyResults: true });
149+
});
151150
});
152151
}
153152
);

0 commit comments

Comments
 (0)