Show ComfyUI audio outputs in portal
Test, build, and deploy ComfyUI Jobs / test-build (push) Successful in 3m57s
Test, build, and deploy ComfyUI Jobs / deploy (push) Successful in 15s
Test, build, and deploy ComfyUI Jobs / browser-test (push) Successful in 2m16s
Test, build, and deploy ComfyUI Jobs / qa-gate (push) Successful in 5s
Test, build, and deploy ComfyUI Jobs / test-build (push) Successful in 3m57s
Test, build, and deploy ComfyUI Jobs / deploy (push) Successful in 15s
Test, build, and deploy ComfyUI Jobs / browser-test (push) Successful in 2m16s
Test, build, and deploy ComfyUI Jobs / qa-gate (push) Successful in 5s
This commit is contained in:
@@ -25,6 +25,31 @@ test('maps completed ComfyUI history into a read-only job summary', () => {
|
||||
assert.deepEqual(job, { promptId: 'abc123', title: 'Portrait', status: 'completed', queuedAt: 1000, completedAt: 3250, durationMs: 2250, outputCount: 1, assets: [{ filename: 'result.png', subfolder: '', type: 'image', url: '/api/assets?filename=result.png&subfolder=&type=output' }], models: [{ nodeId: '7', type: 'CheckpointLoaderSimple', name: 'portrait.safetensors' }], progress: null });
|
||||
});
|
||||
|
||||
test('maps ComfyUI audio outputs, including FLAC, into downloadable audio assets', () => {
|
||||
const job = jobFromHistory('audio123', {
|
||||
prompt: [1, 'audio123', {}, { title: 'Neo-soul piano' }],
|
||||
status: { completed: true },
|
||||
outputs: { '9': { audio: [{ filename: 'neo_soul.flac', subfolder: '', type: 'output' }] } },
|
||||
});
|
||||
assert.equal(job.outputCount, 1);
|
||||
assert.deepEqual(job.assets[0], {
|
||||
filename: 'neo_soul.flac',
|
||||
subfolder: '',
|
||||
type: 'audio',
|
||||
url: '/api/assets?filename=neo_soul.flac&subfolder=&type=output',
|
||||
});
|
||||
});
|
||||
|
||||
test('recognises audio output arrays used by alternate ComfyUI nodes', () => {
|
||||
const job = jobFromHistory('audio456', {
|
||||
prompt: [1, 'audio456', {}, { title: 'Audio' }],
|
||||
status: { completed: true },
|
||||
outputs: { '9': { audios: [{ filename: 'result.mp3', subfolder: 'music', type: 'output' }] } },
|
||||
});
|
||||
assert.equal(job.assets[0].type, 'audio');
|
||||
assert.match(job.assets[0].url, /filename=result.mp3/);
|
||||
});
|
||||
|
||||
test('classifies failed history without exposing mutation paths', () => {
|
||||
assert.equal(statusFromHistory({ status: { messages: [['execution_error', {}]] } }), 'failed');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user