从收藏跳转并定位私聊和群聊原消息
This commit is contained in:
1 parent
f923b0ca7b
commit
7717120bac
11 files changed
+150
-22
No files matched your search
@@ -435,6 +435,14 @@ test('Web 与 Windows 安全码校验、加密互发、离线接收和状态恢
|
||||
web.off('request', trackFavorites)
|
||||
assert.ok(tracked.every(([url, method, body]) => method === 'GET' && !body &&
|
||||
!url.includes(encodeURIComponent(marker)) && !url.includes(encodeURIComponent('验收资料'))))
|
||||
const originalLink = webFavorites.getByRole('link', { name: '查看原消息', exact: true })
|
||||
assert.ok(!(await originalLink.getAttribute('href')).includes('healthz'))
|
||||
await originalLink.click()
|
||||
const locatedPrivate = web.getByRole('list', { name: '消息记录' }).locator('li[aria-current="true"]')
|
||||
await locatedPrivate.getByRole('link', { name: link, exact: true }).waitFor()
|
||||
await locatedPrivate.evaluate((row) => {
|
||||
if (document.activeElement !== row) throw new Error('私聊原消息未获得焦点')
|
||||
})
|
||||
|
||||
await windows.getByLabel('内容类型').selectOption('image')
|
||||
await windowsFavorites.getByRole('button', { name: '预览 加密预览.png', exact: true }).click()
|
||||
|
||||
Reference in new issue
Block a user