fix(test): Failing testcase filters test in DataQualityAndProfiler.spec.ts (#24478)

This commit is contained in:
Harshit Shah 2025-11-21 12:29:48 +05:30 committed by GitHub
parent c7d910a8f5
commit 848d30824f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1230,6 +1230,25 @@ test('TestCase filters', PLAYWRIGHT_INGESTION_TAG_OBJ, async ({ page }) => {
// Apply domain globally
await page.getByTestId('domain-dropdown').click();
// Wait for the domain select dropdown to be visible
await page.waitForSelector('[data-testid="domain-selectable-tree"]', {
state: 'visible',
});
// Search for the domain and wait for API response
const domainSearchResponse = page.waitForResponse(
`/api/v1/search/query?q=*${encodeURIComponent(
domain.responseData.name
)}*&index=domain_search_index*`
);
await page
.getByTestId('domain-selectable-tree')
.getByTestId('searchbar')
.fill(domain.responseData.name);
await domainSearchResponse;
await page
.getByTestId(`tag-${domain.responseData.fullyQualifiedName}`)
.click();