fix the flaky test failure around bulk import (#21271)

(cherry picked from commit 2f795ccc13696fd6ec8acaa532539026a02df9f3)
This commit is contained in:
Ashish Gupta 2025-05-19 15:38:09 +05:30
parent b789ece15b
commit 79bbea556b
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -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, {