fix the user spec failure for the dataConsumer user permission (#20055)

This commit is contained in:
Ashish Gupta 2025-03-04 08:46:01 +05:30 committed by GitHub
parent f21b6d1a13
commit 9e13ff6be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -547,26 +547,16 @@ export const checkDataConsumerPermissions = async (page: Page) => {
) )
).toBeVisible(); ).toBeVisible();
if (process.env.PLAYWRIGHT_IS_OSS) { await expect(page.locator('[data-testid="manage-button"]')).toBeVisible();
await expect(
page.locator('[data-testid="manage-button"]')
).not.toBeVisible();
} else {
await expect(page.locator('[data-testid="manage-button"]')).toBeVisible();
await page.click('[data-testid="manage-button"]'); await page.click('[data-testid="manage-button"]');
await expect(page.locator('[data-testid="export-button"]')).toBeVisible(); await expect(page.locator('[data-testid="export-button"]')).toBeVisible();
await expect( await expect(page.locator('[data-testid="import-button"]')).not.toBeVisible();
page.locator('[data-testid="import-button"]') await expect(
).not.toBeVisible(); page.locator('[data-testid="announcement-button"]')
await expect( ).not.toBeVisible();
page.locator('[data-testid="announcement-button"]') await expect(page.locator('[data-testid="delete-button"]')).not.toBeVisible();
).not.toBeVisible();
await expect(
page.locator('[data-testid="delete-button"]')
).not.toBeVisible();
}
await page.click('[data-testid="lineage"]'); await page.click('[data-testid="lineage"]');