fix: improve test case form loading and structure in AddTestCaseNewFlow (#23068)

(cherry picked from commit 1e5d2c92680a47a4e02b1ad16e8acd0d9aab5d45)
This commit is contained in:
Shailesh Parmar 2025-08-23 09:30:52 +05:30 committed by OpenMetadata Release Bot
parent 75a2ae5b9f
commit ca8610314d
2 changed files with 9 additions and 4 deletions

View File

@ -172,6 +172,10 @@ test.describe('Add TestCase New Flow', () => {
await selectTable(page, table1.entity.name);
await page.click('#testCaseFormV1_selectedColumn');
await page.waitForLoadState('networkidle');
await page.waitForSelector(
`.ant-select-dropdown [title="${table1.entity.columns[0].name}"]`
);
await page
.locator(
`.ant-select-dropdown [title="${table1.entity.columns[0].name}"]`

View File

@ -1038,6 +1038,7 @@ const TestCaseFormV1: FC<TestCaseFormV1Props> = ({
api={fetchTables}
disabled={Boolean(table)}
getPopupContainer={getPopupContainer}
notFoundContent={undefined}
placeholder={t('label.select-entity', {
entity: t('label.table'),
})}
@ -1073,10 +1074,6 @@ const TestCaseFormV1: FC<TestCaseFormV1Props> = ({
)}
</Card>
<Card className="form-card-section" data-testid="test-details-card">
{generateFormFields(testDetailsFormFields)}
</Card>
<Card className="form-card-section" data-testid="test-type-card">
<Form.Item className="custom-select-test-type-style m-b-md">
{selectedTestLevel === TestLevel.TABLE && (
@ -1172,6 +1169,10 @@ const TestCaseFormV1: FC<TestCaseFormV1Props> = ({
generateFormFields(computeRowCountField)}
</Card>
<Card className="form-card-section" data-testid="test-details-card">
{generateFormFields(testDetailsFormFields)}
</Card>
{shouldShowScheduler && (
<Row gutter={[20, 20]}>
<Col span={24}>