File tree Expand file tree Collapse file tree
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ import { expect, test } from '@playwright/test';
1414import { DELETE_TERM } from '../../constant/common' ;
1515import { PLAYWRIGHT_BASIC_TEST_TAG_OBJ } from '../../constant/config' ;
1616import { GlobalSettingOptions } from '../../constant/settings' ;
17- import {
18- redirectToHomePage ,
19- toastNotification ,
20- uuid ,
21- } from '../../utils/common' ;
17+ import { redirectToHomePage , uuid } from '../../utils/common' ;
2218import { 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
2626test . 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) ;
You can’t perform that action at this time.
0 commit comments