feat: 抽离保留进程功能到设置里

This commit is contained in:
Wxw-Gu
2026-09-14 16:44:53 +08:00
parent cf9ea8a83b
commit 550e3b104c
5 changed files with 83 additions and 64 deletions
@@ -191,4 +191,11 @@ describe('PersonalWechatSendPage on Windows', () => {
expect(screen.queryByText(/OneBot/i)).not.toBeInTheDocument()
expect(screen.queryByText('微信发送组件')).not.toBeInTheDocument()
})
it('does not show the macOS process setting on the Windows WeChat send page', async () => {
render(<PersonalWechatSendPage onNotice={vi.fn()} />)
expect(await screen.findByRole('spinbutton', { name: '微信发送能力端口' })).toBeVisible()
expect(screen.queryByRole('switch', { name: '保留 OneBot 进程' })).not.toBeInTheDocument()
})
})