Skip to content

Commit 18cbf6f

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

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
@@ -13,13 +13,13 @@
1313
import { expect, test } from '@playwright/test';
1414
import { DELETE_TERM } from '../../constant/common';
1515
import { GlobalSettingOptions } from '../../constant/settings';
16-
import {
17-
redirectToHomePage,
18-
toastNotification,
19-
uuid,
20-
} from '../../utils/common';
16+
import { redirectToHomePage, uuid } from '../../utils/common';
2117
import { settingClick } from '../../utils/sidebar';
22-
import { addTeamHierarchy, getNewTeamDetails } from '../../utils/team';
18+
import {
19+
addTeamHierarchy,
20+
getNewTeamDetails,
21+
searchTeam,
22+
} from '../../utils/team';
2323

2424
// use the admin user to login
2525
test.use({ storageState: 'playwright/.auth/admin.json' });
@@ -138,9 +138,8 @@ test.describe('Add Nested Teams and Test TeamsSelectable', () => {
138138
await page.click('[data-testid="confirm-button"]');
139139
await deleteResponse;
140140

141-
await toastNotification(
142-
page,
143-
`"${businessTeamName}" deleted successfully!`
144-
);
141+
await test.step('Deleted team is no longer searchable', async () => {
142+
await searchTeam(page, businessTeamName, { expectEmptyResults: true });
143+
});
145144
});
146145
});

0 commit comments

Comments
 (0)