fix(settings): 仅展示只读DWS凭证状态
build / build (push) Successful in 1m10s

This commit is contained in:
姚章浩
2026-10-27 09:56:19 +08:00
parent 5b6e154459
commit f0b12412a1
8 changed files with 149 additions and 32 deletions
+1 -1
View File
@@ -567,7 +567,7 @@ describe('SystemSettingsView 数据源配置的默认清单', () => {
expect(html).toContain('aria-expanded="false"')
expect(html).toContain('仅手动刷新')
expect(html).toContain('数据源设置审计')
expect((html.match(/钉钉账号 ·/g) ?? []).length).toBe(1)
expect((html.match(/DWS 凭证 ·/g) ?? []).length).toBe(1)
for (const removed of ['+ 新增钉钉知识库', '文件格式筛选']) expect(html).not.toContain(removed)
// 文档工程师看不到添加向导与「去掉来源」:两者都是管理员动作。
const engineer = view('engineer')