Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: update music video browser tests for Setup-only media mode and the renamed draft button (#10160)
Adam Eivyc8f1f4f40a2e
diff --git a/server/routes/musicVideoRichAuthoring.browser.test.js b/server/routes/musicVideoRichAuthoring.browser.test.jsindex daf1bc4d32..964074f25a 100644--- a/server/routes/musicVideoRichAuthoring.browser.test.js+++ b/server/routes/musicVideoRichAuthoring.browser.test.js@@ -52,7 +52,7 @@ afterAll(async () => {});describe.skipIf(!canRun)('rich document authoring in a real browser (Chrome, ffmpeg and client dependencies required)', () => {- it('selects code-only, authors and accepts a Three.js world through the real UI and renders its reviewed proof', async () => {+ it('authors and accepts a Three.js world through the real UI and renders its reviewed proof', async () => {// Skipped suites do not run cleanup hooks: load data-owning services only here.const { PATHS } = await import('../lib/paths.js');const { default: router } = await import('./musicVideo.js');@@ -61,7 +61,7 @@ describe.skipIf(!canRun)('rich document authoring in a real browser (Chrome, ffmawait mkdir(PATHS.music, { recursive: true });await mkdir(PATHS.videos, { recursive: true });execFileSync(ffmpeg, ['-v', 'error', '-y', '-f', 'lavfi', '-i', 'sine=frequency=220:duration=10', join(PATHS.music, 'synthetic-master.wav')]);- const p = await store.createProject({ name: 'Example paper doorway', uploadedAudioFilename: 'synthetic-master.wav', mediaMode: 'code-images', composition: { mode: 'document' } });+ const p = await store.createProject({ name: 'Example paper doorway', uploadedAudioFilename: 'synthetic-master.wav', mediaMode: 'code-only', composition: { mode: 'document' } });await store.setProjectAnalysis(p.id, { durationSec: 10, bpm: 120, beats: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], downbeats: [0, 4, 8], sections: [{ id: 'chorus', label: 'Chorus', startSec: 0, endSec: 10 }] });await store.updateProject(p.id, { lyricCues: [{ id: 'line', text: 'Open the doorway', startSec: 1, endSec: 7, words: [{ conf: 'matched', w: 'Open', startSec: 1, endSec: 3 }, { conf: 'matched', w: 'the', startSec: 3, endSec: 4 }, { conf: 'matched', w: 'doorway', startSec: 4, endSec: 7 }] }] });const scene = await store.addProjectScene(p.id, { label: 'Chorus', startSec: 0, endSec: 10, prompt: 'A paper doorway opens onto a copper sky.' });@@ -122,7 +122,8 @@ describe.skipIf(!canRun)('rich document authoring in a real browser (Chrome, ffm}};await page.goto(`http://127.0.0.1:${server.address().port}`);- await page.getByLabel('Design and composition media').selectOption('code-only');+ expect(await page.getByLabel('Design and composition media').count()).toBe(0); // media mode is chosen in Setup only+ await page.getByText('Document source', { exact: true }).click();await page.getByLabel('Authoring renderer').selectOption('three');expect((await store.getProject(p.id)).mediaMode).toBe('code-only');const choreography = 'Energy target: driving chorus with an expansive exit.\n0:00–0:04 / opening downbeats: operator steps toward the door and raises the key; camera pushes in; title lands on the first vocal.\n0:04–0:10 / chorus accent: key turns, door swings outward, operator crosses the threshold; camera arcs around the prop; type clears before the exit.\nRepeat chorus: widen the doorway and increase the operator travel while retaining the copper motif.';@@ -147,7 +148,7 @@ describe.skipIf(!canRun)('rich document authoring in a real browser (Chrome, ffmawait approve('Approve art direction', { exact: true });const [planned] = await Promise.all([page.waitForResponse(response => response.url().endsWith('/production-review/prepare') && response.request().method() === 'POST'),- page.getByRole('button', { name: 'Prepare planning draft with autopilot' }).click(),+ page.getByRole('button', { name: 'Draft art direction and shots' }).click(),]);expect(planned.status()).toBe(200);expect((await store.getProject(p.id)).treatment.shotDirections[0].medium).toBe('procedural');diff --git a/server/routes/musicVideoSongRevision.browser.test.js b/server/routes/musicVideoSongRevision.browser.test.jsindex 2f8a510771..1526299208 100644--- a/server/routes/musicVideoSongRevision.browser.test.js+++ b/server/routes/musicVideoSongRevision.browser.test.js@@ -106,7 +106,7 @@ describe.skipIf(!canRun)('song revision in Chrome (client dependencies required)const upload = () => page.getByLabel('Import document shot manifest', { exact: true }).setInputFiles({ name: 'shots.json', mimeType: 'application/json', buffer: Buffer.from(JSON.stringify(manifest)) });await upload();await page.getByText('authored-shot — document source shot', { exact: true }).waitFor();- expect(await page.getByRole('button', { name: 'Prepare planning draft with autopilot' }).isDisabled()).toBe(true);+ expect(await page.getByRole('button', { name: 'Draft art direction and shots' }).isDisabled()).toBe(true);const replacement = await importDocumentTemplate(selected.id, 'layered');musicVideoEvents.emit('song-revision', { projectId: selected.id, project: replacement.project });await page.waitForFunction(directory => document.body.textContent.includes(directory), replacement.document.directory);