feat(broadcast): finish multi-role insight experience
This commit is contained in:
@@ -4,7 +4,7 @@ import test from 'node:test';
|
||||
|
||||
const read = (path) => readFile(new URL(path, import.meta.url), 'utf8');
|
||||
|
||||
test('M1 员工端可筛选与我有关和必读未读消息,并保留公开频道', async () => {
|
||||
test('M1 员工端可筛选定向提醒和必读未读消息,并保留公开频道', async () => {
|
||||
const [service, list, detail] = await Promise.all([
|
||||
read('../src/services/broadcast.ts'),
|
||||
read('../src/pages/user/broadcast/index.vue'),
|
||||
@@ -19,6 +19,7 @@ test('M1 员工端可筛选与我有关和必读未读消息,并保留公开
|
||||
assert.match(list, /listBroadcastMessages\(1, pageSize, scope\.value\)/);
|
||||
assert.match(list, /item\.requiredRead/);
|
||||
assert.match(list, /item\.targeted/);
|
||||
assert.match(list, /定向提醒/);
|
||||
assert.match(detail, /item\.requiredRead/);
|
||||
assert.match(detail, /item\.targeted/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user