mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 09:55:36 +00:00
fix the teams flaky playwright test (#23495)
This commit is contained in:
parent
6c7b007056
commit
0d0bd5a632
@ -959,7 +959,15 @@ test.describe('Teams Page action as Owner of Team', () => {
|
|||||||
test('User as not owner should not have edit/create permission on Team', async ({
|
test('User as not owner should not have edit/create permission on Team', async ({
|
||||||
ownerUserPage,
|
ownerUserPage,
|
||||||
}) => {
|
}) => {
|
||||||
|
const teamListResponse = ownerUserPage.waitForResponse(
|
||||||
|
'/api/v1/teams?parentTeam=**'
|
||||||
|
);
|
||||||
await teamNoOwner.visitTeamPage(ownerUserPage);
|
await teamNoOwner.visitTeamPage(ownerUserPage);
|
||||||
|
await teamListResponse;
|
||||||
|
|
||||||
|
await ownerUserPage.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
|
|
||||||
await expect(ownerUserPage.getByTestId('manage-button')).not.toBeVisible();
|
await expect(ownerUserPage.getByTestId('manage-button')).not.toBeVisible();
|
||||||
|
|
||||||
@ -971,7 +979,7 @@ test.describe('Teams Page action as Owner of Team', () => {
|
|||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
ownerUserPage.getByTestId('add-placeholder-button')
|
ownerUserPage.getByTestId('add-placeholder-button')
|
||||||
).not.toBeVisible();
|
).toBeDisabled();
|
||||||
});
|
});
|
||||||
|
|
||||||
test(`Add New Team in BusinessUnit Team`, async ({ ownerUserPage }) => {
|
test(`Add New Team in BusinessUnit Team`, async ({ ownerUserPage }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user