From 79bbea556bb8c4a8f4edbd56e96f3f2869cf7c13 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Mon, 19 May 2025 15:38:09 +0530 Subject: [PATCH] fix the flaky test failure around bulk import (#21271) (cherry picked from commit 2f795ccc13696fd6ec8acaa532539026a02df9f3) --- .../ui/playwright/e2e/Features/BulkImport.spec.ts | 2 +- .../main/resources/ui/playwright/utils/importUtils.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts index 6b2f8f173d9..5231cddfa1a 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts @@ -861,7 +861,7 @@ test.describe('Bulk Import Export', () => { await fillColumnDetails(columnDetails2, page); - await page.click('[type="button"] >> text="Next"', { force: true }); + await page.getByRole('button', { name: 'Next' }).click(); await validateImportStatus(page, { passed: '9', diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/importUtils.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/importUtils.ts index 5216fc90787..d15bcc4dcfd 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/importUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/importUtils.ts @@ -18,7 +18,12 @@ import { FIELD_VALUES_CUSTOM_PROPERTIES, } from '../constant/glossaryImportExport'; import { GlobalSettingOptions } from '../constant/settings'; -import { descriptionBox, descriptionBoxReadOnly, uuid } from './common'; +import { + clickOutside, + descriptionBox, + descriptionBoxReadOnly, + uuid, +} from './common'; import { addCustomPropertiesForEntity, fillTableColumnInputDetails, @@ -213,6 +218,8 @@ const editGlossaryCustomProperty = async ( .locator(descriptionBox) .fill(FIELD_VALUES_CUSTOM_PROPERTIES.MARKDOWN); + await clickOutside(page); + await page.getByTestId('markdown-editor').getByTestId('save').click(); await page.waitForSelector(descriptionBox, {