Merge pull request '为 XHChat 增加品牌标志与 Windows 图标' (#21) from xhgit/brand-logo into main

Reviewed-on: http://git.xhmcl.com/xhgit/XHChat/pulls/21
This commit was merged in pull request #21.
This commit is contained in:
xhgit committed 2026-11-14 00:30:05 +00:00
commit 43216c205c
10 files changed
+18 -13

No files matched your search

+2
View File
@@ -21,6 +21,7 @@ test('Web 注册,Windows 登录,Web 撤销 Windows 设备', { timeout: 45000
try {
const web = await browser.newPage({ viewport: { width: 390, height: 844 } })
await web.goto(base)
await web.waitForFunction(() => document.querySelector('.brand img')?.naturalWidth === 512)
await web.getByRole('button', { name: '注册', exact: true }).click()
const username = 'qa_' + randomBytes(6).toString('hex')
const password = randomBytes(24).toString('base64url')
@@ -52,6 +53,7 @@ test('Web 注册,Windows 登录,Web 撤销 Windows 设备', { timeout: 45000
env: { ...process.env, XHCHAT_SERVER_URL: base },
})
const windows = await desktop.firstWindow()
await windows.waitForFunction(() => document.querySelector('.brand img')?.naturalWidth === 512)
await form(windows, username, password)
await windows.locator('button.primary').click()
await windows.getByText('实时连接已建立').waitFor()