From e9333fd43966b1fc501713f59dc8c2df4c1c234c Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Thu, 25 Sep 2025 20:36:09 +0530 Subject: [PATCH 1/2] chore(ui): fix ingestion bot playwright timeout issue (#23547) --- .../ui/playwright/e2e/Flow/IngestionBot.spec.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/IngestionBot.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/IngestionBot.spec.ts index b46979c8901..c8b0012d2af 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/IngestionBot.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/IngestionBot.spec.ts @@ -78,16 +78,6 @@ test.describe('Ingestion Bot ', () => { await afterAction(); }); - test.afterAll('Cleanup pre-requests', async ({ browser }) => { - const { apiContext, afterAction } = await performAdminLogin(browser); - await Promise.all([ - domain1.delete(apiContext), - domain2.delete(apiContext), - domain3.delete(apiContext), - ]); - await afterAction(); - }); - test.beforeEach('Visit entity details page', async ({ page }) => { await redirectToHomePage(page); }); @@ -105,7 +95,6 @@ test.describe('Ingestion Bot ', () => { await test.step('Assign assets to domains', async () => { // Add assets to domain 1 - await redirectToHomePage(page); await sidebarClick(page, SidebarItem.DOMAIN); await page.waitForLoadState('networkidle'); await page.waitForSelector('[data-testid="loader"]', { @@ -115,7 +104,6 @@ test.describe('Ingestion Bot ', () => { await addAssetsToDomain(page, domain1, domainAsset1); // Add assets to domain 2 - await redirectToHomePage(page); await sidebarClick(page, SidebarItem.DOMAIN); await page.waitForLoadState('networkidle'); await page.waitForSelector('[data-testid="loader"]', { @@ -128,8 +116,6 @@ test.describe('Ingestion Bot ', () => { await test.step( 'Ingestion bot should access domain assigned assets', async () => { - await redirectToHomePage(ingestionBotPage); - // Check if entity page is accessible & it has domain for (const asset of domainAsset1) { await redirectToHomePage(ingestionBotPage); @@ -173,7 +159,6 @@ test.describe('Ingestion Bot ', () => { ]); // Add assets to domain 2 - await redirectToHomePage(page); await sidebarClick(page, SidebarItem.DOMAIN); await page.waitForLoadState('networkidle'); await page.waitForSelector('[data-testid="loader"]', { From 6448f22dbfa1cb96f81925f14f98b40c0f255cfd Mon Sep 17 00:00:00 2001 From: Pranita Fulsundar Date: Thu, 25 Sep 2025 20:40:41 +0530 Subject: [PATCH 2/2] fix search preview test (#23555) --- .../e2e/Pages/SearchSettings.spec.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchSettings.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchSettings.spec.ts index 2fa4d5a986d..4526fac0a4f 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchSettings.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchSettings.spec.ts @@ -168,17 +168,24 @@ test.describe('Search Preview test', () => { state: 'detached', }); - const searchInput = page.getByTestId('searchbar'); - const previewRes = page.waitForResponse('/api/v1/search/preview'); - await searchInput.fill(table1.entity.name); - await previewRes; - const descriptionField = page.getByTestId( `field-configuration-panel-description` ); await descriptionField.click(); await setSliderValue(page, 'field-weight-slider', 68); - await descriptionField.click(); + + const previewResponse = page.waitForResponse('/api/v1/search/preview'); + await page.getByTestId('highlight-field-switch').click(); + await previewResponse; + + await expect(page.getByTestId('highlight-field-switch')).toHaveAttribute( + 'aria-checked', + 'false' + ); + + const searchInput = page.getByTestId('searchbar'); + await searchInput.fill(table1.entity.name); + await previewResponse; await page.waitForLoadState('networkidle'); await page.waitForSelector('[data-testid="loader"]', {