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:
@@ -245,6 +245,20 @@ test.describe('ComfyUI Portal read-only UI states', () => {
|
||||
await expect(page.locator('figure a')).toHaveAttribute('rel', 'noopener');
|
||||
});
|
||||
|
||||
test('renders audio assets with a native player and safe output link', async ({ page }) => {
|
||||
const jobs = [{
|
||||
promptId: 'audio-1', title: 'Neo-soul piano', status: 'completed', queuedAt: 1000,
|
||||
durationMs: 60000, outputCount: 1,
|
||||
assets: [{ filename: 'neo_soul.flac', url: '/api/assets?filename=neo_soul.flac&subfolder=&type=output', type: 'audio' }],
|
||||
models: [], progress: null,
|
||||
}];
|
||||
await mockReadOnlyApi(page, { jobs });
|
||||
await page.goto('/jobs');
|
||||
await expect(page.locator('audio')).toHaveAttribute('src', /filename=neo_soul\.flac/);
|
||||
await expect(page.getByText('neo_soul.flac')).toBeVisible();
|
||||
await expect(page.locator('figure a')).toHaveAttribute('target', '_blank');
|
||||
});
|
||||
|
||||
test('shows a clear jobs error while retaining server status', async ({ page }) => {
|
||||
await mockReadOnlyApi(page, { jobs: 'unavailable' });
|
||||
await page.goto('/jobs');
|
||||
|
||||
Reference in New Issue
Block a user