fix: align WeChat channel modes

This commit is contained in:
lofyer
2026-08-10 11:47:03 +08:00
parent a9ae00a845
commit 2cb712e4ba
11 changed files with 36 additions and 27 deletions
@@ -330,6 +330,11 @@ describe('ChannelSettingsSection', () => {
const close = await screen.findByRole('button', {
name: '关闭微信绑定'
})
expect(
screen.getByText(
'请在微信中依次打开“设置 → ClawBot → 开始扫一扫”,扫描下方二维码。二维码不会发送到第三方页面。'
)
).toBeInTheDocument()
await waitFor(() => expect(close).toHaveFocus())
fireEvent.keyDown(document, { key: 'Escape' })
+3 -1
View File
@@ -681,7 +681,9 @@ function WeixinQrDialog({
<header>
<div>
<strong id="channel-qr-title"> ClawBot</strong>
<small>使</small>
<small>
ClawBot
</small>
</div>
<button
aria-label="关闭微信绑定"