feat: 完成 UI 基础层与核心页面迁移

This commit is contained in:
Wxw-Gu committed 2026-08-19 17:43:07 +08:00
1 parent c0b710e56f
commit 49d4e17d67
62 files changed
+4279 -5178

No files matched your search

+7
View File
@@ -40,6 +40,13 @@ describe('ImageBubble', () => {
await userEvent.click(image)
await waitFor(() => expect(onImageClick).toHaveBeenCalledWith(original))
expect(requestImage.mock.calls[1][3]).toMatchObject({ force: true })
onImageClick.mockClear()
requestImage.mockResolvedValueOnce({ data: original, isThumbnail: false })
const trigger = screen.getByRole('button', { name: '查看图片' })
trigger.focus()
await userEvent.keyboard('{Enter}')
await waitFor(() => expect(onImageClick).toHaveBeenCalledWith(original))
})
it('shows an explicit error and allows retry', async () => {