Skip to content

Commit 9554957

Browse files
harsh-vadorJatin Masaram
authored andcommitted
playwright: remove duplicate team deletion test from TeamsDragAndDrop (open-metadata#27668)
* playwright: remove duplicate team deletion test from TeamsDragAndDrop * remove unwanted
1 parent a4f866c commit 9554957

1 file changed

Lines changed: 1 addition & 26 deletions

File tree

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from '../../utils/dragDrop';
2626
import { waitForAllLoadersToDisappear } from '../../utils/entity';
2727
import { settingClick } from '../../utils/sidebar';
28-
import { addTeamHierarchy, hardDeleteTeam } from '../../utils/team';
28+
import { addTeamHierarchy } from '../../utils/team';
2929

3030
// use the admin user to login
3131
test.use({ storageState: 'playwright/.auth/admin.json' });
@@ -199,30 +199,5 @@ test.describe(
199199

200200
await expect(movedTeam).toBeVisible();
201201
});
202-
203-
test('Delete Teams', async ({ page }) => {
204-
for (const teamName of [
205-
teamNameBusiness,
206-
teamNameDivision,
207-
teamNameDepartment,
208-
teamNameGroup,
209-
]) {
210-
const getTeamResponse = page.waitForResponse(
211-
`/api/v1/teams/name/${teamName}*`
212-
);
213-
214-
await page.getByRole('link', { name: teamName }).click();
215-
await getTeamResponse;
216-
217-
await waitForAllLoadersToDisappear(page);
218-
219-
await hardDeleteTeam(page, teamName);
220-
221-
// Validate the deleted team
222-
await expect(
223-
page.getByRole('cell', { name: teamName })
224-
).not.toBeVisible();
225-
}
226-
});
227202
}
228203
);

0 commit comments

Comments
 (0)