Skip to content

Commit b6eceed

Browse files
Refactor Profiler tests to enhance role access validation and update profiler settings (#26078)
1 parent e57720a commit b6eceed

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality

openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/Profiler.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,20 @@ const validateProfilerAccessForRole = async (
8585
const listColumnResponse = await listColumnApiCall;
8686

8787
expect(listColumnResponse.status()).toBe(200);
88+
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
89+
90+
const columnNameCell = page
91+
.locator(`[data-row-key*="${tableInstance.entity.columns[1].name}"]`)
92+
.getByText(tableInstance.entity.columns[1].name);
93+
94+
await expect(columnNameCell).toBeVisible();
95+
await expect(columnNameCell).toBeEnabled();
8896

8997
const getProfilerInfo = page.waitForResponse(
9098
'/api/v1/tables/*/columnProfile?*'
9199
);
92100
await page
93-
.locator(`[data-row-key="${tableInstance.entity.columns[1].name}"]`)
101+
.locator(`[data-row-key*="${tableInstance.entity.columns[1].name}"]`)
94102
.getByText(tableInstance.entity.columns[1].name)
95103
.click();
96104
await getProfilerInfo;

0 commit comments

Comments
 (0)