feat(modeler): 建实体向导加「所属分类」选择器(source /api/meta/entity-types)

wizard 步①新增 amis select「所属分类」(必填,221 分类可搜),提交时随 attributes 一并 POST。
e2e 补选分类交互。修用户反馈的「实体所属分类缺失」。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-20 14:45:44 +08:00
parent 71535929f7
commit 2b261e319f
2 changed files with 9 additions and 0 deletions

View File

@@ -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 });