feat: 定时日报支持Windows

This commit is contained in:
电摇小子
2026-09-01 11:36:15 +08:00
parent f65dc4ac32
commit 25b72c3d76
15 changed files with 205 additions and 41 deletions
+1 -1
View File
@@ -647,7 +647,7 @@ describe('daily report controls', () => {
const button = screen.getByRole('button', { name: '发送到当前群聊' })
expect(button).toBeDisabled()
expect(button.parentElement).toHaveAttribute('title', '仅支持 macOS')
expect(button.parentElement).toHaveAttribute('title', '仅支持 macOS 和 Windows')
})
it('switches templates from the top toolbar using the saved report snapshot', async () => {
@@ -81,7 +81,9 @@ describe('ScheduledReportsWorkspace', () => {
onOpenWechatSettings={onOpenWechatSettings}
/>
)
await waitFor(() => expect(screen.getByText('微信消息发送目前仅支持 macOS')).toBeVisible())
await waitFor(() =>
expect(screen.getByText('微信消息发送目前仅支持 macOS 和 Windows')).toBeVisible()
)
expect(screen.getByRole('button', { name: /新建定时日报/ })).toBeDisabled()
})