WIP: AGC 资源画布与替换改造 V3.0 #316
@@ -2235,13 +2235,20 @@ export function registerProjectWorkbenchFoundationTests() {
|
||||
args?.category === 'audio',
|
||||
),
|
||||
).toBe(false);
|
||||
// 音频资源的选中工具条只保留美术画布同名动作;详情面板已删除。
|
||||
// 音频资源的选中工具条复用美术画布的音频分支(aria-label「素材工具栏」),
|
||||
// 并且只渲染宿主编排层真实接通的动作:「分类与标签」「重命名」已接面板,
|
||||
// 「改造」在宿主编排层仍是空回调,不能再渲染成点了没反应的按钮。
|
||||
const audioToolbar = screen.getByRole('toolbar', {
|
||||
name: '素材工具栏',
|
||||
});
|
||||
expect(
|
||||
within(audioToolbar).getByRole('button', { name: '改造' }),
|
||||
).not.toBeNull();
|
||||
within(audioToolbar).queryByRole('button', { name: '改造' }),
|
||||
).toBeNull();
|
||||
expect(
|
||||
within(audioToolbar)
|
||||
.getAllByRole('button')
|
||||
.map((button) => button.getAttribute('aria-label')),
|
||||
).toEqual(['分类与标签', '重命名']);
|
||||
|
||||
await openResourceBookCategory('设计文档');
|
||||
fireEvent.click(getResourceSelectButton('blocked.md'));
|
||||
|
||||
Reference in New Issue
Block a user