mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-21 13:54:57 +00:00
fix test (#22928)
This commit is contained in:
parent
b08f980892
commit
ca3602bc7f
@ -114,7 +114,6 @@ test('Domain allow operations', async ({ testUserPage, browser }) => {
|
||||
// Test that domain operation elements are visible
|
||||
const directElements = [
|
||||
'edit-description',
|
||||
'add-owner',
|
||||
'add-tag',
|
||||
'edit-icon-right-panel',
|
||||
'add-domain',
|
||||
@ -139,6 +138,13 @@ test('Domain allow operations', async ({ testUserPage, browser }) => {
|
||||
await expect(element).toBeVisible();
|
||||
}
|
||||
|
||||
const ownerButton = testUserPage
|
||||
.getByTestId('add-owner')
|
||||
.or(testUserPage.getByTestId('edit-owner'))
|
||||
.first();
|
||||
|
||||
await expect(ownerButton).toBeVisible();
|
||||
|
||||
// Click manage button once and test elements inside it
|
||||
const manageButton = testUserPage.getByTestId('manage-button');
|
||||
|
||||
@ -180,7 +186,7 @@ test('Domain deny operations', async ({ testUserPage, browser }) => {
|
||||
// Test that domain operation elements are visible
|
||||
const directElements = [
|
||||
'edit-description',
|
||||
'add-owner',
|
||||
|
||||
'add-tag',
|
||||
'edit-icon-right-panel',
|
||||
'add-domain',
|
||||
@ -203,6 +209,12 @@ test('Domain deny operations', async ({ testUserPage, browser }) => {
|
||||
|
||||
await expect(element).not.toBeVisible();
|
||||
}
|
||||
const ownerButton = testUserPage
|
||||
.getByTestId('add-owner')
|
||||
.or(testUserPage.getByTestId('edit-owner'))
|
||||
.first();
|
||||
|
||||
await expect(ownerButton).not.toBeVisible();
|
||||
|
||||
// Click manage button once and test elements inside it
|
||||
const manageButton = testUserPage.getByTestId('manage-button');
|
||||
|
Loading…
x
Reference in New Issue
Block a user