修复上传素材切换侧栏

上传到画布后保持当前左侧侧栏状态。

补充上传工作流和画布 drop 回归断言。

更新跟踪记录并完成浏览器回归。
This commit is contained in:
2026-06-17 14:59:02 +08:00
parent 84818f9bd5
commit 7a77ab4df7
5 changed files with 14 additions and 13 deletions

View File

@@ -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 () => {