This commit is contained in:
@@ -198,9 +198,8 @@ describe('SystemSettingsView', () => {
|
||||
// 需求(2026-10-14 收敛):数据源配置只剩两个入口 —— dws 导入(按当前钉钉账号发现)
|
||||
// 与 PP 导入;AList/静态钉钉知识库等来源类型不再出现在这里(也没有折叠开关兜着)。
|
||||
expect(html).toContain('公司级技术支持知识库')
|
||||
expect(html).toContain('dws 共享授权')
|
||||
for (const hidden of ['专用浏览器扫码会话', '显示 AList/钉钉知识库来源'])
|
||||
expect(html).not.toContain(hidden)
|
||||
expect(html).not.toContain('dws 共享授权')
|
||||
for (const hidden of ['专用浏览器扫码会话', '显示 AList/钉钉知识库来源']) expect(html).not.toContain(hidden)
|
||||
// 统一入口后不再按类型分标题:PP 与钉钉共用同一张清单与同一个添加向导。
|
||||
expect(html).not.toContain('PP 导入')
|
||||
// 需求(2026-10-10):数据源配置不再做文件格式筛选(格式由目录级标注决定)。
|
||||
@@ -291,9 +290,10 @@ describe('SystemSettingsView', () => {
|
||||
expect(servicesHtml).toContain('端点探测:暂无真实探测结果')
|
||||
// V1: left-nav section controls, per-source schedule editing, danger modal & history affordances.
|
||||
expect(html).toContain('settings-nav')
|
||||
for (const kept of ['查看修订历史', '保存并启用调度', '停用来源', '下次自动刷新']) expect(html).toContain(kept)
|
||||
for (const kept of ['更多', '下次自动刷新']) expect(html).toContain(kept)
|
||||
for (const hidden of ['查看修订历史', '保存并启用调度', '停用来源']) expect(html).not.toContain(hidden)
|
||||
expect(html).not.toContain('本页只列 PP 来源')
|
||||
expect(html).toContain('本地手工导入来源不支持定时刷新')
|
||||
expect(html).not.toContain('本地手工导入来源不支持定时刷新')
|
||||
// dead buttons removed
|
||||
expect(html).not.toContain('添加内容源')
|
||||
expect(html).not.toContain('管理员编辑')
|
||||
@@ -561,9 +561,11 @@ describe('SystemSettingsView 数据源配置的默认清单', () => {
|
||||
expect(html).toContain('+ 添加数据源')
|
||||
expect(html).not.toContain('PP 导入')
|
||||
expect(html).not.toContain('去掉来源')
|
||||
expect(html).toContain('端点与凭据')
|
||||
// PP 来源的卡片操作照旧:改刷新周期、启停、看修订历史。
|
||||
for (const kept of ['查看修订历史', '保存并启用调度', '停用来源', '自动刷新周期']) expect(html).toContain(kept)
|
||||
for (const removed of ['端点与凭据', '认证方式', '查看修订历史', '保存并启用调度', '停用来源', '自动刷新周期'])
|
||||
expect(html).not.toContain(removed)
|
||||
expect(html).toContain('更多')
|
||||
expect(html).toContain('aria-expanded="false"')
|
||||
expect(html).toContain('已启用')
|
||||
for (const removed of ['+ 新增钉钉知识库', '文件格式筛选']) expect(html).not.toContain(removed)
|
||||
// 文档工程师看不到添加向导与「去掉来源」:两者都是管理员动作。
|
||||
const engineer = view('engineer')
|
||||
|
||||
Reference in New Issue
Block a user