修复bug
This commit is contained in:
@@ -30,6 +30,9 @@ test('implements company details, contact information and qualification workflow
|
||||
assert.match(profileSource, /downloadQualificationImage/)
|
||||
assert.match(profileSource, /URL\.createObjectURL/)
|
||||
assert.match(profileSource, /URL\.revokeObjectURL/)
|
||||
assert.match(profileSource, /企业资料加载失败/)
|
||||
assert.match(profileSource, /@click="loadCompanyContext"/)
|
||||
assert.doesNotMatch(profileSource, /企业类型|注册资本|contactWechat|businessAddress/)
|
||||
})
|
||||
|
||||
test('implements member list, role assignment, password reset and status control', () => {
|
||||
@@ -42,6 +45,8 @@ test('implements member list, role assignment, password reset and status control
|
||||
assert.match(membersSource, /await store\.resetMemberPassword/)
|
||||
assert.match(membersSource, /await store\.toggleMemberStatus/)
|
||||
assert.match(membersSource, /v-model="form\.password"/)
|
||||
assert.match(membersSource, /企业成员加载失败/)
|
||||
assert.match(membersSource, /@click="loadMembers"/)
|
||||
})
|
||||
|
||||
test('protects built-in roles and exposes role permission assignment', () => {
|
||||
@@ -56,6 +61,8 @@ test('protects built-in roles and exposes role permission assignment', () => {
|
||||
assert.match(rolesSource, /await store\.updateRole/)
|
||||
assert.match(rolesSource, /await store\.toggleRoleStatus/)
|
||||
assert.match(rolesSource, /await store\.deleteRole/)
|
||||
assert.match(rolesSource, /企业角色加载失败/)
|
||||
assert.match(rolesSource, /@click="loadRoles"/)
|
||||
})
|
||||
|
||||
test('shows company audit status and applies button permissions', () => {
|
||||
@@ -75,6 +82,8 @@ test('implements grouped menu and action permission editing', () => {
|
||||
assert.match(permissionsSource, /系统内置角色,权限由平台统一维护,不允许修改/)
|
||||
assert.match(permissionsSource, /全量替换/)
|
||||
assert.match(permissionsSource, /await store\.setRolePermissions/)
|
||||
assert.match(permissionsSource, /角色权限加载失败/)
|
||||
assert.match(permissionsSource, /当前企业暂无可用角色/)
|
||||
assert.doesNotMatch(permissionsSource, /当前只读展示权限资源/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user