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
fix(music-video): clarify proof approval prerequisites and attestation
[._.]/ Adam Eivybcb29c366096
diff --git a/client/src/components/musicVideo/ProductionReviewPanel.jsx b/client/src/components/musicVideo/ProductionReviewPanel.jsxindex 6ecc95a8dc..80633e4d5d 100644--- a/client/src/components/musicVideo/ProductionReviewPanel.jsx+++ b/client/src/components/musicVideo/ProductionReviewPanel.jsx@@ -7,7 +7,7 @@ const EMPTY = { cast: '', environments: '', visualLanguage: '', motionLanguage:const fieldClass = 'mt-1 w-full rounded border border-port-border bg-port-bg p-2 text-sm';const buttonClass = 'min-h-[44px] rounded border border-port-border px-3 py-2 text-sm disabled:opacity-50';const labels = { art: 'Art direction', storyboard: 'Lyric-timed storyboard', proof: 'Animated proof' };-const EMPTY_PLAYBACK = { watched: false, method: 'playback', energyComparison: '', timecodedNotes: '', visualReview: '', audioReview: '', limitations: '' };+const EMPTY_PLAYBACK = { method: 'playback', energyComparison: '', timecodedNotes: '', visualReview: '', audioReview: '', limitations: '' };/** Editable planning content and explicit operator decisions for every render mode. */// `framed={false}` drops the card chrome and heading for a host that supplies them (the page's collapsible section).@@ -49,9 +49,9 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,const machineReview = playback.method === 'machine';const evidenceComplete = machineReview? playback.visualReview.trim().length >= 40 && playback.audioReview.trim().length >= 40 && !!playback.limitations.trim()- : playback.watched;- const playbackComplete = evidenceComplete && !!playback.energyComparison.trim()- && /(?:\b\d{1,2}:\d{2}(?:\.\d+)?\b|\b\d+(?:\.\d+)?s\b)/.test(playback.timecodedNotes);+ : true;+ const hasTimecodedNotes = /(?:\b\d{1,2}:\d{2}(?:\.\d+)?\b|\b\d+(?:\.\d+)?s\b)/.test(playback.timecodedNotes);+ const playbackComplete = evidenceComplete && !!playback.energyComparison.trim() && hasTimecodedNotes;const approve = stage => {return review.approve(stage, stage === 'proof' ? { watchedWithAudio: !machineReview,...(machineReview ? { method: 'machine', machineEvidence: {@@ -61,9 +61,40 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,excerptId: excerpt.id, filename: excerpt.filename } : undefined);};+ const approvalHelp = stage => {+ if (!ready) return 'Loading review prerequisites…';+ if (dirty) return 'Save your planning edits before approving this revision.';+ if (review.busy) return 'Wait for the current review action to finish.';+ if (ready[stage].approved) return 'Already approved for this revision.';+ if (ready[stage].problems.length) return 'Complete the prerequisites listed above before approving.';+ if (stage === 'art' && visibleArt !== artIdentity) return 'Load and inspect the selected visual guide before approving art direction.';+ if (stage !== 'proof') return null;+ if (review.proof.active) return 'Wait for the evidence render to finish, then review the completed proof.';+ if (playbackBlocked) return 'Load the completed animated proof before recording your review. If playback fails, restore its exact file or render a new proof.';+ if (!playback.energyComparison.trim()) return 'Describe how the playback energy compares with the saved plan.';+ if (!hasTimecodedNotes) return 'Add playback notes with a timestamp such as 0:04 or 4.5s.';+ if (!evidenceComplete) return 'Complete the visual and audio observations (at least 40 characters each) and state the review limitations.';+ return null;+ };+ const openReviewSection = event => {+ const target = document.getElementById(event.currentTarget.hash.slice(1));+ if (target) { target.open = true; target.focus({ preventScroll: true }); }+ };const nextStage = ['art', 'storyboard', 'proof'].find(stage => !ready?.[stage].approved) || 'proof';const proofContent = <><p className="text-xs text-port-text-muted break-words">Project v{project.version || 1} · proof revision {ready?.basis.proof?.slice(0, 12) || 'Loading…'} · {excerpt ? `Excerpt ${excerpt.id}` : 'No registered proof'}</p>+ {!excerpt && <div className="rounded border border-port-border p-3 space-y-2" aria-label="Proof approval prerequisites">+ <p className="text-sm">{prototype ? 'The video below is a feasibility prototype, not a registered production proof. Watching it does not enable proof approval.' : 'No production proof is registered for this project.'}</p>+ <ol className="list-decimal pl-5 text-sm space-y-2">+ {!ready?.art.approved && <li><a href="#mv-review-art" onClick={openReviewSection} className="text-port-accent underline">Review and approve art direction</a> for the current revision.</li>}+ {!ready?.storyboard.approved && <li><a href="#mv-review-storyboard" onClick={openReviewSection} className="text-port-accent underline">Resolve storyboard prerequisites and approve it</a>.+ <ul className="list-disc pl-5">{(ready?.storyboard.problems || []).map(problem => <li key={problem}>{problem}</li>)}</ul>+ <a href="#mv-review-planning" onClick={openReviewSection} className="text-port-accent underline">Open planning edits for alignment and document shot manifests</a>.+ </li>}+ <li>Choose a 10–45 second chorus window and use “Render animated proof” below. The feasibility prototype button creates a separate, unapproved preview.</li>+ <li>Review the proof with audio, add an energy comparison and timecoded notes, then approve using the playback attestation.</li>+ </ol>+ </div>}{excerpt && <p className="text-xs text-port-text-muted break-words">{excerpt.filename || excerpt.status} · {project.productionReview?.proof?.basis === ready?.basis.proof ? 'Current source revision' : 'Source changed — render a new proof'}</p>}{excerpt?.status === 'error' && excerpt.error && <p role="alert" className="text-sm text-port-error break-words">{excerpt.error}</p>}@@ -102,7 +133,7 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,</section>}<label htmlFor={fieldId('review-method')} className="block text-sm">Review method<select id={fieldId('review-method')} disabled={playbackBlocked} value={playback.method}- onChange={e => setPlayback({ method: e.target.value, watched: false })} className={fieldClass}>+ onChange={e => setPlayback({ method: e.target.value })} className={fieldClass}><option value="playback">Playback with audio</option><option value="machine">Machine review with visual and audio evidence</option></select>@@ -129,8 +160,7 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,placeholder="0:04 — subject turns on the downbeat; prop opens through 0:06; camera and type clear the lyric. Name any mismatch to revise." /></label><p className="text-xs text-port-text-muted">Include at least one playback timestamp such as 0:04 or 4.5s. These notes are saved with this exact proof. A replacement proof requires a new comparison and acknowledgement.</p>- {!machineReview && <label htmlFor={fieldId('watched')} className="flex gap-2 py-2 text-sm"><input id={fieldId('watched')} type="checkbox" checked={playback.watched}- disabled={playbackBlocked} onChange={e => setPlayback({ watched: e.target.checked })} />I watched this revision with audio at normal speed and compared its energy, timed choreography and lyric timing with the saved plan.</label>}+ {!machineReview && <p id={fieldId('playback-attestation')} className="text-sm">By approving, I confirm that I watched this exact proof with audio at normal speed and compared its energy, timed choreography and lyric timing with the saved plan.</p>}</>;return <section id="mv-production-review" aria-label="Production review" className={framed ? 'rounded-lg border border-port-border bg-port-card p-3 space-y-3' : 'space-y-3'}>{framed && <h3 className="font-medium">Production review</h3>}@@ -140,12 +170,14 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,{Object.entries(labels).map(([key, label]) => <li key={key}><details open={window.location.hash === `#mv-review-${key}` || key === nextStage} id={`mv-review-${key}`} tabIndex={-1} style={{ scrollMarginTop: 'calc(var(--mv-header-h, 9rem) + 1rem)' }} className="rounded border border-port-border p-2 focus:outline focus:outline-2 focus:outline-port-accent"><summary className="cursor-pointer min-h-[44px] py-2 text-sm font-medium">{label}</summary><p role="status" className="text-xs">{ready?.[key].approved ? 'Approved for this revision' : 'Review required'}</p>- {(ready?.[key].problems || []).map(problem => <p key={problem} className="mt-1 text-xs text-port-text-muted">{problem}</p>)}+ <div id={fieldId(`${key}-prerequisites`)}>{(ready?.[key].problems || []).map(problem => <p key={problem} className="mt-1 text-xs text-port-text-muted">{problem}</p>)}</div>{key === 'proof' ? proofContent : <ProductionReviewContext stage={key} project={project} basis={ready?.basis[key]} approved={ready?.[key].approved} onOpenArtifact={onOpenArtifact} onArtReady={available => setVisibleArt(available ? artIdentity : null)} />}+ <p id={fieldId(`${key}-approval-help`)} role="status" className="mt-2 text-sm text-port-text-muted">{approvalHelp(key)}</p><button type="button" className={`${buttonClass} mt-2`} onClick={() => approve(key)}+ aria-describedby={`${fieldId(`${key}-prerequisites`)} ${fieldId(`${key}-approval-help`)}${key === 'proof' && !machineReview ? ` ${fieldId('playback-attestation')}` : ''}`}disabled={blocked || (key === 'art' && visibleArt !== artIdentity) || ready?.[key].approved || !!ready?.[key].problems.length|| (key === 'proof' && (playbackBlocked || !playbackComplete))}>- Approve {label.toLowerCase()}+ {key === 'proof' ? machineReview ? 'Approve animated proof with machine evidence' : 'Approve — I reviewed this proof with audio' : `Approve ${label.toLowerCase()}`}</button><button type="button" className={`${buttonClass} mt-2 ml-2`} onClick={() => {@@ -185,7 +217,7 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,</>}</li>)}</ul></details>- <details>+ <details id="mv-review-planning" tabIndex={-1} open={window.location.hash === '#mv-review-planning'} style={{ scrollMarginTop: 'calc(var(--mv-header-h, 9rem) + 1rem)' }}><summary className="cursor-pointer min-h-[44px] py-2 text-sm">Edit visual guide and storyboard</summary><div className="space-y-3"><label htmlFor={fieldId('import')} className="block text-sm">Import planning JSON as an unapproved draftdiff --git a/client/src/components/musicVideo/ProductionReviewPanel.test.jsx b/client/src/components/musicVideo/ProductionReviewPanel.test.jsxindex a8ecfdb51c..0371fd6dc7 100644--- a/client/src/components/musicVideo/ProductionReviewPanel.test.jsx+++ b/client/src/components/musicVideo/ProductionReviewPanel.test.jsx@@ -4,7 +4,8 @@ import ProductionReviewPanel from './ProductionReviewPanel.jsx';afterEach(() => { vi.unstubAllGlobals(); window.location.hash = ''; });-const acknowledgement = 'I watched this revision with audio at normal speed and compared its energy, timed choreography and lyric timing with the saved plan.';+const approvalAction = 'Approve — I reviewed this proof with audio';+const proofAction = /Approve.*proof/;const project = {id: 'example-project', scenes: [], lyricCues: [], composition: { mode: 'document' },productionReview: { proof: { excerptId: 'proof-a', basis: 'same-creative-basis' }, draft: {@@ -22,16 +23,77 @@ function recordPlayback() {fireEvent.loadedData(screen.getByLabelText('Animated proof with master audio'));fireEvent.change(screen.getByLabelText('Playback energy compared with the saved plan'), { target: { value: 'The driving turn matches the chosen energy.' } });fireEvent.change(screen.getByLabelText('Timecoded playback notes'), { target: { value: '0:04 — figure turns on the downbeat; prop follows at 4.5s.' } });- fireEvent.click(screen.getByLabelText(acknowledgement));}describe('Production proof playback evidence', () => {+ it('records playback attestation only when the reviewer explicitly approves, without a separate checkbox', () => {+ const review = reviewFixture();+ render(<ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} />);+ const approve = screen.getByRole('button', { name: approvalAction });+ expect(approve.disabled).toBe(true);+ fireEvent.loadedData(screen.getByLabelText('Animated proof with master audio'));+ expect(screen.getByText('Describe how the playback energy compares with the saved plan.')).toBeTruthy();+ fireEvent.change(screen.getByLabelText('Playback energy compared with the saved plan'), { target: { value: 'Driving movement matches the plan.' } });+ expect(approve.disabled).toBe(true);+ expect(screen.getByText('Add playback notes with a timestamp such as 0:04 or 4.5s.')).toBeTruthy();+ recordPlayback();+ expect(screen.queryByRole('checkbox')).toBeNull();+ expect(approve.disabled).toBe(false);+ expect(review.approve).not.toHaveBeenCalled();+ expect(document.getElementById(approve.getAttribute('aria-describedby').split(' ').at(-1)).textContent).toContain('watched this exact proof with audio at normal speed');+ fireEvent.click(approve);+ expect(review.approve).toHaveBeenCalledWith('proof', {+ watchedWithAudio: true, excerptId: 'proof-a', filename: 'proof-a.mp4',+ energyComparison: 'The driving turn matches the chosen energy.',+ timecodedNotes: '0:04 — figure turns on the downbeat; prop follows at 4.5s.',+ });+ });++ it('explains why a completed prototype cannot be approved and opens the missing prerequisites', () => {+ const review = reviewFixture();+ review.readiness.art.approved = false;+ review.readiness.storyboard = { approved: false, problems: ['Verify alignment against the current master.', 'Import a matching document shot manifest.'] };+ review.readiness.proof.problems = ['Approve the current lyric-timed storyboard before the animated proof.'];+ const prototype = { ...project, productionReview: { ...project.productionReview, proof: null, prototype: { excerptId: 'proof-a' } } };+ render(<ProductionReviewPanel project={prototype} review={review} onOpenArtifact={vi.fn()} />);+ fireEvent.click(screen.getByText('Animated proof', { selector: 'summary' }));+ const prerequisites = screen.getByLabelText('Proof approval prerequisites');+ expect(prerequisites.textContent).toContain('feasibility prototype, not a registered production proof');+ expect(prerequisites.textContent).toContain('Verify alignment against the current master.');+ expect(prerequisites.textContent).toContain('Import a matching document shot manifest.');+ expect(screen.getByRole('button', { name: approvalAction }).disabled).toBe(true);+ expect(screen.getByRole('button', { name: 'Render animated proof' }).disabled).toBe(true);+ fireEvent.loadedData(screen.getByLabelText('Unapproved feasibility prototype'));+ expect(screen.getByRole('button', { name: approvalAction }).disabled).toBe(true);+ fireEvent.click(within(prerequisites).getByRole('link', { name: 'Resolve storyboard prerequisites and approve it' }));+ expect(document.getElementById('mv-review-storyboard').open).toBe(true);+ fireEvent.click(within(prerequisites).getByRole('link', { name: 'Open planning edits for alignment and document shot manifests' }));+ expect(document.getElementById('mv-review-planning').open).toBe(true);+ expect(document.activeElement.id).toBe('mv-review-planning');+ expect(review.approve).not.toHaveBeenCalled();+ });++ it('clears evidence when the creative revision changes even if the excerpt and filename are unchanged', () => {+ const review = reviewFixture();+ const view = render(<ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} />);+ recordPlayback();+ const changedReview = { ...review, readiness: { ...review.readiness,+ basis: { ...review.readiness.basis, proof: 'new-creative-basis' },+ proof: { approved: false, problems: ['Render and watch a current animated chorus proof with the master song.'] },+ } };+ view.rerender(<ProductionReviewPanel project={project} review={changedReview} onOpenArtifact={vi.fn()} />);+ expect(screen.getByLabelText('Timecoded playback notes').value).toBe('');+ expect(screen.getByRole('button', { name: approvalAction }).disabled).toBe(true);+ expect(screen.getByText(/Source changed — render a new proof/)).toBeTruthy();+ expect(review.approve).not.toHaveBeenCalled();+ });+it('shows a persisted capture failure after reconnect and keeps proof approval blocked', () => {render(<ProductionReviewPanel project={{ ...project, excerpts: [{ id: 'proof-a', status: 'error',error: 'Composition capture failed at frame 0 (song 12s): Browser command timed out: Page.captureScreenshot' }] }}review={reviewFixture()} onOpenArtifact={vi.fn()} />);expect(screen.getByRole('alert').textContent).toContain('capture failed at frame 0');- expect(screen.getByRole('button', { name: 'Approve animated proof' }).disabled).toBe(true);+ expect(screen.getByRole('button', { name: proofAction }).disabled).toBe(true);expect(screen.queryByLabelText('Animated proof with master audio')).toBeNull();});@@ -40,8 +102,8 @@ describe('Production proof playback evidence', () => {const view = render(<ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} />);recordPlayback();fireEvent.change(screen.getByLabelText('Review method'), { target: { value: 'machine' } });- expect(screen.queryByLabelText(acknowledgement)).toBeNull();- const approve = screen.getByRole('button', { name: 'Approve animated proof' });+ expect(screen.queryByRole('checkbox')).toBeNull();+ const approve = screen.getByRole('button', { name: proofAction });const evidence = {visualReview: 'Continuous frame sequence shows the figure turning and opening the prop on the beat.',audioReview: 'Decoded master audio matches the proof interval; transient timing aligns with the turn.',@@ -61,8 +123,7 @@ describe('Production proof playback evidence', () => {timecodedNotes: '0:04 — figure turns on the downbeat; prop follows at 4.5s.',});fireEvent.change(screen.getByLabelText('Review method'), { target: { value: 'playback' } });- expect(screen.getByLabelText(acknowledgement).checked).toBe(false);- expect(approve.disabled).toBe(true);+ expect(screen.getByRole('button', { name: approvalAction }).disabled).toBe(false);fireEvent.change(screen.getByLabelText('Review method'), { target: { value: 'machine' } });view.rerender(<ProductionReviewPanel project={{ ...project, excerpts: [{ ...project.excerpts[0], filename: 'replacement.mp4' }] }} review={review} onOpenArtifact={vi.fn()} />);expect(screen.getByLabelText('Review method').value).toBe('playback');@@ -86,7 +147,7 @@ describe('Production proof playback evidence', () => {}fireEvent.change(screen.getByLabelText('Playback energy compared with the saved plan'), { target: { value: 'Driving movement matches the saved plan.' } });fireEvent.change(screen.getByLabelText('Timecoded playback notes'), { target: { value: 'Missing timestamp' } });- const approve = screen.getByRole('button', { name: 'Approve animated proof' });+ const approve = screen.getByRole('button', { name: proofAction });expect(approve.disabled).toBe(true);fireEvent.change(screen.getByLabelText('Timecoded playback notes'), { target: { value: '0:04 — turn matches the downbeat.' } });fireEvent.error(screen.getByLabelText('Animated proof with master audio'));@@ -147,7 +208,7 @@ describe('Production proof playback evidence', () => {} } } } };const view = render(<ProductionReviewPanel project={approved} review={review} onOpenArtifact={vi.fn()} />);expect(screen.getByLabelText('Recorded proof review').textContent).toContain('0:04 — the figure turns on the downbeat.');- expect(screen.getByLabelText(acknowledgement).checked).toBe(false);+ expect(screen.queryByRole('checkbox')).toBeNull();expect(screen.getByLabelText('Timecoded playback notes').value).toBe('');view.rerender(<ProductionReviewPanel project={{ ...approved, excerpts: [{ id: 'proof-a', filename: 'replacement.mp4', status: 'complete' }] }} review={review} onOpenArtifact={vi.fn()} />);expect(screen.queryByLabelText('Recorded proof review')).toBeNull();@@ -160,16 +221,16 @@ describe('Production proof playback evidence', () => {const review = reviewFixture();const view = render(<ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} />);recordPlayback();- expect(screen.getByRole('button', { name: 'Approve animated proof' }).disabled).toBe(false);+ expect(screen.getByRole('button', { name: proofAction }).disabled).toBe(false);const replacement = { ...project, productionReview: { ...project.productionReview, proof: { ...project.productionReview.proof, excerptId: id } },excerpts: [{ id, filename, status: 'complete' }] };view.rerender(<ProductionReviewPanel project={replacement} review={review} onOpenArtifact={vi.fn()} />);- expect(screen.getByLabelText(acknowledgement).checked).toBe(false);+ expect(screen.queryByRole('checkbox')).toBeNull();expect(screen.getByLabelText('Playback energy compared with the saved plan').value).toBe('');expect(screen.getByLabelText('Timecoded playback notes').value).toBe('');- expect(screen.getByRole('button', { name: 'Approve animated proof' }).disabled).toBe(true);+ expect(screen.getByRole('button', { name: proofAction }).disabled).toBe(true);recordPlayback();- fireEvent.click(screen.getByRole('button', { name: 'Approve animated proof' }));+ fireEvent.click(screen.getByRole('button', { name: proofAction }));expect(review.approve).toHaveBeenCalledWith('proof', expect.objectContaining({excerptId: id, filename, watchedWithAudio: true, energyComparison: 'The driving turn matches the chosen energy.',timecodedNotes: '0:04 — figure turns on the downbeat; prop follows at 4.5s.',@@ -182,10 +243,10 @@ describe('Production proof playback evidence', () => {recordPlayback();fireEvent.error(screen.getByLabelText('Animated proof with master audio'));expect(screen.getByRole('alert').textContent).toContain('could not be played');- expect(screen.getByRole('button', { name: 'Approve animated proof' }).disabled).toBe(true);+ expect(screen.getByRole('button', { name: proofAction }).disabled).toBe(true);});- it('keeps failed choreography saves dirty and blocks playback acknowledgement and approval', async () => {+ it('keeps failed choreography saves dirty and blocks approval', async () => {const review = reviewFixture();render(<ProductionReviewPanel project={project} review={review} onOpenArtifact={vi.fn()} />);recordPlayback();@@ -193,9 +254,8 @@ describe('Production proof playback evidence', () => {fireEvent.click(screen.getByRole('button', { name: 'Save planning edits', hidden: true }));await waitFor(() => expect(review.save).toHaveBeenCalled());expect(screen.getByText('Save edits before preparing, approving or rendering.')).toBeTruthy();- expect(screen.getByLabelText(acknowledgement).disabled).toBe(true);expect(screen.getByLabelText('Timecoded playback notes').disabled).toBe(true);- expect(screen.getByRole('button', { name: 'Approve animated proof' }).disabled).toBe(true);+ expect(screen.getByRole('button', { name: proofAction }).disabled).toBe(true);expect(review.approve).not.toHaveBeenCalled();});});diff --git a/server/routes/musicVideoProductionReview.browser.test.js b/server/routes/musicVideoProductionReview.browser.test.jsindex 9f759d7099..10ebacc4c8 100644--- a/server/routes/musicVideoProductionReview.browser.test.js+++ b/server/routes/musicVideoProductionReview.browser.test.js@@ -127,8 +127,8 @@ describe.skipIf(!canRun)('production review in a real browser (Chrome, ffmpeg anexpect(await page.locator('video').evaluate(v => v.videoWidth)).toBeGreaterThan(0);await page.getByLabel('Playback energy compared with the saved plan').fill('The synthetic fixture demonstrates a driving chorus: the modeled subject changes pose and travels while the camera moves through the scene.');await page.getByLabel('Timecoded playback notes').fill('0:02 — subject enters the frame; 0:07 — pose and camera position differ and readable type remains clear. This is a synthetic workflow test, not artistic approval of a production video.');- await page.getByLabel('I watched this revision with audio at normal speed and compared its energy, timed choreography and lyric timing with the saved plan.').check();- await page.getByRole('button', { name: 'Approve animated proof' }).click();+ expect(await page.getByRole('checkbox', { name: /I watched this revision/ }).count()).toBe(0);+ await page.getByRole('button', { name: 'Approve — I reviewed this proof with audio' }).click();await page.waitForFunction(() => [...document.querySelectorAll('[role=status]')].filter(el => el.textContent === 'Approved for this revision').length === 3);const result = await store.getProject(p.id);expect(result.productionReview.feedback[0].resolvedAt).toBeTruthy();diff --git a/server/routes/musicVideoRichAuthoring.browser.test.js b/server/routes/musicVideoRichAuthoring.browser.test.jsindex ef325f2c95..daf1bc4d32 100644--- a/server/routes/musicVideoRichAuthoring.browser.test.js+++ b/server/routes/musicVideoRichAuthoring.browser.test.js@@ -194,11 +194,11 @@ describe.skipIf(!canRun)('rich document authoring in a real browser (Chrome, ffmawait page.locator('video').evaluate(async video => { await video.play(); await new Promise(r => setTimeout(r, 400)); video.pause(); });expect(await page.locator('video').evaluate(v => v.videoWidth)).toBeGreaterThan(0);expect(await page.getByRole('region', { name: 'Saved choreography for proof comparison' }).textContent()).toContain(choreography);- expect(await page.getByRole('button', { name: 'Approve animated proof' }).isDisabled()).toBe(true);+ expect(await page.getByRole('button', { name: 'Approve — I reviewed this proof with audio' }).isDisabled()).toBe(true);await page.getByLabel('Playback energy compared with the saved plan').fill('The synthetic fixture demonstrates a driving chorus: the modeled subject changes pose and travels while the camera moves through the scene.');await page.getByLabel('Timecoded playback notes').fill('0:02 — subject enters the frame; 0:07 — pose and camera position differ and readable type remains clear. This is a synthetic workflow test, not artistic approval of a production video.');- await page.getByLabel('I watched this revision with audio at normal speed and compared its energy, timed choreography and lyric timing with the saved plan.').check();- await page.getByRole('button', { name: 'Approve animated proof' }).click();+ expect(await page.getByRole('checkbox', { name: /I watched this revision/ }).count()).toBe(0);+ await page.getByRole('button', { name: 'Approve — I reviewed this proof with audio' }).click();await page.waitForFunction(() => [...document.querySelectorAll('[role=status]')].filter(el => el.textContent === 'Approved for this revision').length === 3);const result = await store.getProject(p.id);expect(result.productionReview.feedback[0].resolvedAt).toBeTruthy();