fix(aihr): harden broadcast and mobile assistant flows
This commit is contained in:
@@ -17,7 +17,7 @@ test('银城大喇叭仅使用认证后的真实广播接口', async () => {
|
||||
test('首页喇叭只在确认有未读消息时显示红点,未登录保留回跳', async () => {
|
||||
const page = await read('../src/pages/user/today/index.vue');
|
||||
|
||||
assert.match(page, /v-if="hasUnreadBroadcast" class="bell-dot"/);
|
||||
assert.match(page, /v-if="hasUnreadBroadcast" class="bell-dot(?:\s+[^\"]*)?"/);
|
||||
assert.match(page, /getBroadcastUnreadCount/);
|
||||
assert.match(page, /const unreadBroadcastCount = ref<number \| null>\(null\)/);
|
||||
assert.match(page, /const hasUnreadBroadcast = computed\(\(\) => typeof unreadBroadcastCount\.value === 'number'/);
|
||||
|
||||
Reference in New Issue
Block a user