修复上传素材切换侧栏
上传到画布后保持当前左侧侧栏状态。 补充上传工作流和画布 drop 回归断言。 更新跟踪记录并完成浏览器回归。
This commit is contained in:
@@ -1608,9 +1608,17 @@ describe('ImageCanvasEditorView', () => {
|
||||
imageSrc: expect.stringMatching(/^data:image\/png;base64,/u),
|
||||
}),
|
||||
);
|
||||
expect(screen.getByRole('heading', { name: '素材' })).toBeTruthy();
|
||||
expect(
|
||||
screen.getByRole('button', { name: '选择图层测试上传.png' }),
|
||||
).toBeTruthy();
|
||||
screen.getByRole('button', { name: '打开素材' }).getAttribute(
|
||||
'aria-pressed',
|
||||
),
|
||||
).toBe('true');
|
||||
expect(
|
||||
screen
|
||||
.getByRole('button', { name: '选择测试上传.png' })
|
||||
.className.includes('image-canvas-editor__layer--selected'),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it('drops files into the asset panel only once without creating canvas layers', async () => {
|
||||
|
||||
Reference in New Issue
Block a user