去掉页头副标题与刷新状态按钮、工程师/管理员权限条、活动版本横幅、 与向导重复的模块说明,以及「去掉来源」按钮(保留停用来源与修订历史)。
This commit is contained in:
@@ -185,24 +185,22 @@ describe('SystemSettingsView', () => {
|
||||
onRefresh={vi.fn()}
|
||||
/>
|
||||
)
|
||||
for (const text of [
|
||||
'系统设置',
|
||||
'数据源配置',
|
||||
'服务配置',
|
||||
'存储与备份',
|
||||
'刷新策略',
|
||||
'设置服务已启用',
|
||||
'当前活动版本',
|
||||
for (const text of ['系统设置', '数据源配置', '服务配置', '存储与备份', '刷新策略']) expect(html).toContain(text)
|
||||
// 主人 2026-10-26 要求去掉的噪声:页头副标题、刷新状态、权限条、活动版本横幅。
|
||||
for (const removed of [
|
||||
'查看内容源、服务与备份状态',
|
||||
'刷新状态',
|
||||
'文档工程师可调整',
|
||||
'管理员设置已锁定',
|
||||
'设置服务已启用',
|
||||
])
|
||||
expect(html).toContain(text)
|
||||
expect(html).not.toContain(removed)
|
||||
// 需求(2026-10-14 收敛):数据源配置只剩两个入口 —— dws 导入(按当前钉钉账号发现)
|
||||
// 与 PP 导入;AList/静态钉钉知识库等来源类型不再出现在这里(也没有折叠开关兜着)。
|
||||
for (const hidden of ['公司级技术支持知识库', '专用浏览器扫码会话', '显示 AList/钉钉知识库来源'])
|
||||
expect(html).not.toContain(hidden)
|
||||
expect(html).toContain('dws 导入')
|
||||
expect(html).toContain('PP 导入')
|
||||
// 统一入口后不再按类型分标题:PP 与钉钉共用同一张清单与同一个添加向导。
|
||||
expect(html).not.toContain('PP 导入')
|
||||
// 需求(2026-10-10):数据源配置不再做文件格式筛选(格式由目录级标注决定)。
|
||||
for (const removed of ['文件格式筛选', '未勾选的一律不取件', '保存保留格式', '恢复继承上级规则'])
|
||||
expect(html).not.toContain(removed)
|
||||
@@ -562,8 +560,8 @@ describe('SystemSettingsView 数据源配置的默认清单', () => {
|
||||
expect(html).not.toContain(hidden)
|
||||
// 统一入口:一个「+ 添加数据源」向导,不再有按类型分家的 dws 导入面板标题。
|
||||
expect(html).toContain('+ 添加数据源')
|
||||
expect(html).toContain('PP 导入')
|
||||
expect(html).toContain('去掉来源</button>')
|
||||
expect(html).not.toContain('PP 导入')
|
||||
expect(html).not.toContain('去掉来源')
|
||||
expect(html).toContain('端点与凭据')
|
||||
// PP 来源的卡片操作照旧:改刷新周期、启停、看修订历史。
|
||||
for (const kept of ['查看修订历史', '保存并启用调度', '停用来源', '自动刷新周期']) expect(html).toContain(kept)
|
||||
@@ -571,8 +569,9 @@ describe('SystemSettingsView 数据源配置的默认清单', () => {
|
||||
// 文档工程师看不到添加向导与「去掉来源」:两者都是管理员动作。
|
||||
const engineer = view('engineer')
|
||||
expect(engineer).not.toContain('+ 添加数据源')
|
||||
expect(engineer).not.toContain('去掉来源</button>')
|
||||
expect(engineer).toContain('PP 导入')
|
||||
expect(engineer).not.toContain('去掉来源')
|
||||
// PP 与钉钉共用同一张清单:工程师看得到卡,只是没有添加与归档。
|
||||
expect(engineer).toContain('PP资料下载中心')
|
||||
})
|
||||
})
|
||||
describe('ppSourceConnections(数据源配置的清单规则)', () => {
|
||||
|
||||
Reference in New Issue
Block a user