1 parent
c0fa38a0fe
commit
fd05187f8f
3 files changed
+7
-11
No files matched your search
@@ -33,9 +33,8 @@ test('用户管理状态映射使用明确的中文文案', () => {
|
||||
assert.equal(roleMeta('').label, '未知权限')
|
||||
assert.equal(recoveryCodeMeta(true).label, '已开启')
|
||||
assert.equal(recoveryCodeMeta(false).label, '未开启')
|
||||
assert.equal(externalEmailMeta(true, true).label, '已绑定')
|
||||
assert.equal(externalEmailMeta(true, false).label, '未绑定')
|
||||
assert.equal(externalEmailMeta(false, true).label, '已关闭')
|
||||
assert.equal(externalEmailMeta(true).label, '已绑定')
|
||||
assert.equal(externalEmailMeta(false).label, '未绑定')
|
||||
assert.equal(accountStatusMeta(0).label, '正常')
|
||||
assert.equal(accountStatusMeta(1).label, '已禁用')
|
||||
})
|
||||
@@ -50,8 +49,9 @@ test('用户管理页面可编译并展示权限与安全状态列', () => {
|
||||
}
|
||||
assert.match(source, /scope\.row\.Role/)
|
||||
assert.match(source, /scope\.row\.RecoveryCodeConfigured/)
|
||||
assert.match(source, /scope\.row\.ExternalEmailEnabled/)
|
||||
assert.doesNotMatch(source, /ExternalEmailEnabled/)
|
||||
assert.match(source, /scope\.row\.ExternalEmailConfigured/)
|
||||
assert.match(source, /selectedUser\?\.ExternalEmailConfigured/)
|
||||
assert.match(source, /管理安全码/)
|
||||
assert.match(source, /编辑外部邮箱/)
|
||||
assert.match(source, /RecoveryCodeDialog/)
|
||||
|
||||
Reference in new issue
Block a user