增加按设备统计的群消息未读角标
This commit is contained in:
1 parent
f54077ce46
commit
187923ca3c
16 files changed
+189
-23
No files matched your search
@@ -201,9 +201,13 @@ test('Windows 与 Web 加密群聊支持消息操作、附件、语音和成员
|
||||
await Promise.all([owner, windows].map((page) => chat(page).getByText(first, { exact: true }).waitFor({ timeout: 3500 })))
|
||||
assert.equal(await removed.getByRole('link', { name: '有新的群消息' }).count(), 0)
|
||||
await work(removed).getByRole('link', { name: '群组' }).click()
|
||||
await removed.getByRole('link', { name: new RegExp(group) }).click()
|
||||
const unreadGroup = removed.getByRole('link', { name: new RegExp(group + '.*1 条未读') })
|
||||
await unreadGroup.click()
|
||||
await unreadGroup.waitFor()
|
||||
await chat(removed).getByRole('button', { name: '启用本机群聊' }).click()
|
||||
await chat(removed).getByText(first, { exact: true }).waitFor()
|
||||
await unreadGroup.waitFor({ state: 'detached', timeout: 4500 })
|
||||
assert.equal(await windows.getByRole('link', { name: new RegExp(group + '.*未读') }).count(), 0)
|
||||
|
||||
const original = chat(owner).getByRole('listitem').filter({ hasText: first })
|
||||
assert.equal(await original.getByRole('button', { name: '编辑', exact: true }).count(), 0)
|
||||
|
||||
Reference in new issue
Block a user