隐藏历史图片名称
历史图片选择弹窗只展示缩略图和生成时间 历史素材兜底文案统一为历史素材 更新拼图历史图片展示口径文档 同步调整拼图历史图片选择流程测试
This commit is contained in:
@@ -1237,11 +1237,13 @@ describe('PuzzleResultView', () => {
|
||||
const picker = await screen.findByRole('dialog', {
|
||||
name: '选择历史图片',
|
||||
});
|
||||
expect(await within(picker).findByText('image.png')).toBeTruthy();
|
||||
expect(await within(picker).findByText(/2024\/04\/21/u)).toBeTruthy();
|
||||
expect(within(picker).queryByText('image.png')).toBeNull();
|
||||
expect(within(picker).queryByText('账号 user-1')).toBeNull();
|
||||
fireEvent.click(
|
||||
await within(picker).findByRole('button', { name: /image\.png/u }),
|
||||
await within(picker).findByRole('button', {
|
||||
name: /选择2024\/04\/21.*的历史图片/u,
|
||||
}),
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
|
||||
Reference in New Issue
Block a user