1
This commit is contained in:
@@ -1423,6 +1423,11 @@ test('作品封面上传会先进入 16:9 裁剪面板再提交到后端', async
|
||||
await waitFor(() => {
|
||||
expect(screen.getByText('裁剪上传封面')).toBeTruthy();
|
||||
});
|
||||
expect(
|
||||
screen.getByRole('button', { name: '拖拽右下角裁剪边界' }),
|
||||
).toBeTruthy();
|
||||
expect(screen.queryByText('左右位置')).toBeNull();
|
||||
expect(screen.queryByText('上下位置')).toBeNull();
|
||||
|
||||
await user.click(screen.getByRole('button', { name: '确认裁剪并上传' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user