Merge branch 'main' into test_fixes

This commit is contained in:
Sweta Agarwalla 2025-09-26 10:56:50 +05:30 committed by GitHub
commit a01e5e43ab
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.waitForLoadState('domcontentloaded');
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 profilerResponse;
await page.waitForLoadState('networkidle');
await page
.getByTestId('table-profiler-container')
.getByTestId('loader')
.waitFor({ state: 'detached' });
await page.waitForLoadState('domcontentloaded');
await page.waitForSelector('[data-testid="profiler-tab-left-panel"]', {
state: 'visible',
});
await page
.getByTestId('profiler-tab-left-panel')
.getByText('Data Quality')