mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
feat: 发送支持群聊@成员
生命周期整理 清理残留整理 完善skill
This commit is contained in:
1 parent
804466aad8
commit
5d4ba73771
28 files changed
+1214
-103
No files matched your search
@@ -97,6 +97,30 @@ describe('personal WeChat unavailable product state', () => {
|
||||
expect(screen.queryByText(/manifest|dylib|runtime missing|文件缺失/i)).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('shows a runtime startup failure instead of an endless checking message', () => {
|
||||
const failedRuntimeStatus: PersonalWechatSenderStatus = {
|
||||
...unavailableStatus,
|
||||
state: 'error',
|
||||
endpointReady: false,
|
||||
runtimeReady: false,
|
||||
message: '发送运行时启动失败(进程退出码 1)',
|
||||
error: '发送运行时启动失败(进程退出码 1)'
|
||||
}
|
||||
|
||||
render(
|
||||
<PersonalWechatSetupGuide
|
||||
senderStatus={failedRuntimeStatus}
|
||||
binding={false}
|
||||
detecting={false}
|
||||
sessionBound={false}
|
||||
showBindAction={false}
|
||||
/>
|
||||
)
|
||||
|
||||
expect(screen.getByRole('alert')).toHaveTextContent('发送运行时启动失败(进程退出码 1)')
|
||||
expect(screen.queryByText('正在检查 发送运行时…')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('describes a ready runtime separately from pending send capability initialization', () => {
|
||||
const boundStatus: PersonalWechatSenderStatus = {
|
||||
...unavailableStatus,
|
||||
|
||||
Reference in new issue
Block a user