收口个人中心任务条目组件

迁移任务中心任务条目到 PlatformSubpanel

保留任务领取流程和奖励状态展示

补充任务条目公共子面板断言并更新文档和 Hermes
This commit is contained in:
2026-06-10 12:24:04 +08:00
parent 66f31db968
commit 2a9514a975
4 changed files with 15 additions and 4 deletions

View File

@@ -2563,7 +2563,10 @@ test('profile daily task shortcut reflects task progress and claim updates', asy
await user.click(screen.getByRole('button', { name: //u }));
expect(await screen.findByText('每日登录')).toBeTruthy();
const taskTitle = await screen.findByText('每日登录');
const taskPanel = taskTitle.closest('.platform-subpanel') as HTMLElement;
expect(taskPanel.className).toContain('rounded-[1rem]');
expect(taskPanel.className).toContain('p-4');
expect(mockGetRpgProfileTasks).toHaveBeenCalledTimes(1);
expect(screen.getByText('1/1')).toBeTruthy();
expect(screen.getByText('+10')).toBeTruthy();