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

This commit is contained in:
Wxw-Gu
2026-08-19 17:43:07 +08:00
parent a72ae49e2c
commit e9cc996ebb
62 changed files with 4279 additions and 5178 deletions
+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 () => {