mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-23 14:54:56 +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
|
// Test that domain operation elements are visible
|
||||||
const directElements = [
|
const directElements = [
|
||||||
'edit-description',
|
'edit-description',
|
||||||
'add-owner',
|
|
||||||
'add-tag',
|
'add-tag',
|
||||||
'edit-icon-right-panel',
|
'edit-icon-right-panel',
|
||||||
'add-domain',
|
'add-domain',
|
||||||
@ -139,6 +138,13 @@ test('Domain allow operations', async ({ testUserPage, browser }) => {
|
|||||||
await expect(element).toBeVisible();
|
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
|
// Click manage button once and test elements inside it
|
||||||
const manageButton = testUserPage.getByTestId('manage-button');
|
const manageButton = testUserPage.getByTestId('manage-button');
|
||||||
|
|
||||||
@ -180,7 +186,7 @@ test('Domain deny operations', async ({ testUserPage, browser }) => {
|
|||||||
// Test that domain operation elements are visible
|
// Test that domain operation elements are visible
|
||||||
const directElements = [
|
const directElements = [
|
||||||
'edit-description',
|
'edit-description',
|
||||||
'add-owner',
|
|
||||||
'add-tag',
|
'add-tag',
|
||||||
'edit-icon-right-panel',
|
'edit-icon-right-panel',
|
||||||
'add-domain',
|
'add-domain',
|
||||||
@ -203,6 +209,12 @@ test('Domain deny operations', async ({ testUserPage, browser }) => {
|
|||||||
|
|
||||||
await expect(element).not.toBeVisible();
|
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
|
// Click manage button once and test elements inside it
|
||||||
const manageButton = testUserPage.getByTestId('manage-button');
|
const manageButton = testUserPage.getByTestId('manage-button');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user