普通用户建应用(前端):新建应用的三个起点(说需求、场景模板、从已有的开始);蓝图页(对话加卡片、反问选项、关节逐组进度、试运行、发布摘要按你来定 / 助手可以修 / 要找管理员分栏、逐步打勾、接着做);问数据「做成应用」改走蓝图;问数据和画布的反问收尾;页面上直接改(选中、改字、隐藏、挪动、删除、加数据卡片、自动存草稿);文件控件;我的记录列表;个人应用的界面(我的应用、刷新与剩余次数、提交审核、审核待办卡);设置页的个人应用开关;四个新检查脚本并加进完整关口

This commit is contained in:
ThearchyHelios
2026-10-15 12:09:29 +08:00
parent 277982ead3
commit a702a5c14b
49 changed files with 6953 additions and 133 deletions
+7
View File
@@ -296,6 +296,11 @@ await section('页面树和属性面板:目录驱动、绑定、可见性', as
const kinds = await insp.locator('[data-app-bind-kind] option').allInnerTexts()
check('绑定种类只给目录登记的(指标、单元格)', kinds.includes('指标') && kinds.includes('单元格') && !kinds.includes('报告'), kinds.join(' | '))
await insp.locator('[data-app-prop="unit"] input').fill('元')
// 隐藏(normal-user-apps N6):和可见性条件分开的一个开关,树上标「已隐藏」
const hide = insp.locator('[data-app-hidden-switch] input[type="checkbox"]')
check('属性面板有「隐藏这个组件」的开关', await hide.count() === 1 && (await insp.locator('[data-app-hidden-switch]').innerText()).includes('隐藏这个组件'))
await hide.check()
check('……打开后树上标「已隐藏」', await page.locator('[data-app-component="gmv"] [data-app-component-hidden]').count() === 1)
await page.locator('[data-app-component="warn"]').click()
const vis = page.locator('[data-app-inspector="warn"] [data-app-visible]')
check('可见性表达式照原样显示,可编辑', await vis.inputValue() === "run.tier != 'formal'")
@@ -309,6 +314,8 @@ await section('页面树和属性面板:目录驱动、绑定、可见性', as
const body = state.patches[0]?.draft?.pages?.[0]?.body ?? []
check('保存的草稿里有改过的属性和新组件', JSON.stringify(body).includes('"unit":"元"') && JSON.stringify(body).includes('"type":"report"'),
JSON.stringify(body).slice(0, 200))
const gmv = body.flatMap((c) => [c, ...(c.children ?? [])]).find((c) => c.id === 'gmv')
check('……隐藏的组件 hidden 为真', gmv?.hidden === true, JSON.stringify(gmv ?? {}).slice(0, 120))
})
await section('视图来源:每种来源写一句解释;新增时起名,删除先确认、写明用到它的组件、可以撤销', async () => {