同步测试用例
支持音频背景音乐生成链路的 `version: 2` 和 `action: audio.background-music.generate` 参数
This commit is contained in:
@@ -2002,8 +2002,11 @@ describe('useImageCanvasGenerationSubmissionWorkflow', () => {
|
||||
makeInstrumental: true,
|
||||
projectId: 'editor-project-bgm',
|
||||
generationInputs: {
|
||||
version: 2,
|
||||
action: 'audio.background-music.generate',
|
||||
fields: [
|
||||
{
|
||||
id: 'prompt',
|
||||
title: 'gpt_description_prompt',
|
||||
value: canonicalPrompt,
|
||||
},
|
||||
@@ -2058,8 +2061,11 @@ describe('useImageCanvasGenerationSubmissionWorkflow', () => {
|
||||
expect(generatedLayer?.prompt).toBe(canonicalPrompt);
|
||||
expect(generatedLayer?.actualPrompt).toBe(canonicalPrompt);
|
||||
expect(generatedLayer?.generationInputs).toEqual({
|
||||
version: 2,
|
||||
action: 'audio.background-music.generate',
|
||||
fields: [
|
||||
{
|
||||
id: 'prompt',
|
||||
title: 'gpt_description_prompt',
|
||||
value: canonicalPrompt,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user