diff --git a/e2e/five-ring.spec.ts b/e2e/five-ring.spec.ts index c973759..a4defcc 100644 --- a/e2e/five-ring.spec.ts +++ b/e2e/five-ring.spec.ts @@ -74,6 +74,9 @@ test('人走五环 · 浏览器全程点穿(amis wizard:建实体 → 生成 // ── 环①②·amis wizard 步1 建实体(combo minLength=1 自带一行字段)── await expect(page.getByPlaceholder('OA_DEMO')).toBeVisible({ timeout: 15_000 }); await page.getByPlaceholder('OA_DEMO').fill(TABLE); + // 所属分类(amis select,必填):点开下拉 → 选第一个分类 + await page.locator('.cxd-Select').first().click(); + await page.locator('.cxd-Select-option').first().click(); // combo 默认不带行(显示「<空>」),先点「加字段」再填 await page.getByRole('button', { name: '加字段' }).click(); await expect(page.getByPlaceholder('TITLE').first()).toBeVisible({ timeout: 10_000 }); diff --git a/src/pages/NewFeatureShell.tsx b/src/pages/NewFeatureShell.tsx index f843836..a62b54f 100644 --- a/src/pages/NewFeatureShell.tsx +++ b/src/pages/NewFeatureShell.tsx @@ -55,6 +55,12 @@ function buildWizardSchema(): Record { validationErrors: { matchRegexp: '表名格式不合法(大写字母开头,3–41 位)' }, }, { type: 'input-text', name: 'name', label: '显示名', placeholder: '演示维护(可选)' }, + { + type: 'select', name: 'entitytype', label: '所属分类', required: true, + source: 'get:/api/meta/entity-types', labelField: 'name', valueField: 'id', + searchable: true, clearable: true, + description: '实体在系统中的归类(SYS_ENTITYTYPE),决定新功能挂在哪个功能域', + }, { type: 'combo', name: 'attributes',