fix profiler view permission aut failure (#23574)

This commit is contained in:
Shrushti Polekar 2025-09-26 10:01:48 +05:30 committed by GitHub
parent 6448f22dbf
commit cc265f956b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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