mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 18:05:00 +00:00
fix profiler view permission aut failure (#23574)
This commit is contained in:
parent
6448f22dbf
commit
cc265f956b
@ -165,16 +165,23 @@ export const validateViewPermissions = async (
|
|||||||
await page.click('[data-testid="table_queries"]');
|
await page.click('[data-testid="table_queries"]');
|
||||||
await page.waitForLoadState('domcontentloaded');
|
await page.waitForLoadState('domcontentloaded');
|
||||||
await checkNoPermissionPlaceholder(page, /Queries/, permission?.viewQueries);
|
await checkNoPermissionPlaceholder(page, /Queries/, permission?.viewQueries);
|
||||||
|
|
||||||
|
const profilerResponse = page.waitForResponse(
|
||||||
|
(response) =>
|
||||||
|
response.url().includes('/api/v1/tables/') &&
|
||||||
|
response.url().includes('/systemProfile?') &&
|
||||||
|
response.url().includes('startTs=') &&
|
||||||
|
response.url().includes('endTs=')
|
||||||
|
);
|
||||||
await page.click('[data-testid="profiler"]');
|
await page.click('[data-testid="profiler"]');
|
||||||
|
await profilerResponse;
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
await page
|
await page
|
||||||
.getByTestId('table-profiler-container')
|
.getByTestId('table-profiler-container')
|
||||||
.getByTestId('loader')
|
.getByTestId('loader')
|
||||||
.waitFor({ state: 'detached' });
|
.waitFor({ state: 'detached' });
|
||||||
await page.waitForLoadState('domcontentloaded');
|
await page.waitForLoadState('domcontentloaded');
|
||||||
|
|
||||||
await page.waitForSelector('[data-testid="profiler-tab-left-panel"]', {
|
|
||||||
state: 'visible',
|
|
||||||
});
|
|
||||||
await page
|
await page
|
||||||
.getByTestId('profiler-tab-left-panel')
|
.getByTestId('profiler-tab-left-panel')
|
||||||
.getByText('Data Quality')
|
.getByText('Data Quality')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user