支持从加密聊天打开隔离浏览器链接
This commit is contained in:
1 parent
f4ea1f8e03
commit
6786158a3e
8 files changed
+54
-8
No files matched your search
@@ -193,6 +193,17 @@ test('Web 与 Windows 安全码校验、加密互发、离线接收和状态恢
|
||||
} finally { db.close() }
|
||||
})
|
||||
assert.deepEqual(stored, [{ wrapped: true, encrypted: true, fields: ['iv', 'key', 'sealed'] }])
|
||||
const link = base + '/healthz'
|
||||
await send(web, link)
|
||||
const webLink = web.getByRole('link', { name: link, exact: true })
|
||||
assert.equal(await webLink.getAttribute('href'), link)
|
||||
assert.equal(await webLink.getAttribute('rel'), 'noopener noreferrer')
|
||||
const windowOpened = desktop.waitForEvent('window')
|
||||
await windows.getByRole('button', { name: link, exact: true }).click()
|
||||
const toolbar = await windowOpened
|
||||
const address = toolbar.getByRole('textbox', { name: '网址或搜索关键词' })
|
||||
await toolbar.waitForFunction((expected) => document.querySelector('#address')?.value === expected, link)
|
||||
assert.equal(await address.inputValue(), link)
|
||||
} finally {
|
||||
await desktop?.close()
|
||||
await browser.close()
|
||||
|
||||
Reference in new issue
Block a user