fix(mobile): align supervisor profile workspace
This commit is contained in:
@@ -289,6 +289,19 @@ test('员工和主管个人页只展示脱敏手机号', async () => {
|
||||
assert.doesNotMatch(supervisorProfile, /\{\{ phone \|\|/);
|
||||
});
|
||||
|
||||
test('主管个人工作台展示真实指标和三项业务入口', async () => {
|
||||
const source = await readFile(new URL('../src/pages/supervisor/profile/index.vue', import.meta.url), 'utf8');
|
||||
|
||||
assert.match(source, /\{\{ loading \? '--' : teamCount \}\}/);
|
||||
assert.match(source, /\{\{ loading \? '--' : pendingReviewCount \}\}/);
|
||||
assert.match(source, /\{\{ loading \? '--' : alertCount \}\}/);
|
||||
assert.match(source, /主管业务入口/);
|
||||
assert.match(source, /\/pages\/supervisor\/team\/index/);
|
||||
assert.match(source, /\/pages\/supervisor\/reviews\/index/);
|
||||
assert.match(source, /\/pages\/supervisor\/assign\/index/);
|
||||
assert.match(source, /getPracticeTeamSnapshot/);
|
||||
});
|
||||
|
||||
test('组织快照姓名不可读时用稳定身份标识展示', () => {
|
||||
const profiles = buildTeamProfiles([], [], [
|
||||
{ extPartyId: '13900001111', name: '???????' },
|
||||
|
||||
Reference in New Issue
Block a user