This commit is contained in:
Shrushti Polekar 2025-09-11 09:49:21 +05:30 committed by shrushti2000
parent b08f980892
commit ca3602bc7f

View File

@ -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');