Skip to content

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

Expect the 15-second Grok limit in the scene card tests

Claudef657865d7152
diff --git a/client/src/components/musicVideo/SceneCard.test.jsx b/client/src/components/musicVideo/SceneCard.test.jsx
index 72ccf23a5a..a18027ed09 100644
--- a/client/src/components/musicVideo/SceneCard.test.jsx
+++ b/client/src/components/musicVideo/SceneCard.test.jsx
@@ -225,7 +225,7 @@ describe('Merge with next (#10810)', () => {
const { rerender } = render(<SceneCard scene={scene} {...props} onMergeNext={onMergeNext} nextEndSec={8} lipSyncBackend="grok" />);
fireEvent.click(screen.getByRole('button', { name: /Merge with next/ }));
expect(onMergeNext).toHaveBeenCalledWith('s1', 'grok');
- rerender(<SceneCard scene={scene} {...props} onMergeNext={onMergeNext} nextEndSec={14} lipSyncBackend="grok" />);
+ rerender(<SceneCard scene={scene} {...props} onMergeNext={onMergeNext} nextEndSec={19} lipSyncBackend="grok" />);
expect(screen.queryByRole('button', { name: /Merge with next/ })).toBeNull();
rerender(<SceneCard scene={scene} {...props} onMergeNext={onMergeNext} nextEndSec={8} isLast />);
expect(screen.queryByRole('button', { name: /Merge with next/ })).toBeNull();
@@ -287,13 +287,13 @@ describe('scene timing and provider presentation (#11046)', () => {
it('warns about uncovered Grok time and splits with the original scene/backend arguments only beyond the epsilon', () => {
const onSplit = vi.fn();
- const { rerender } = render(<SceneCard {...props} scene={{ ...scene, startSec: 0, endSec: 13 }} lipSyncBackend="grok" onSplit={onSplit} />);
- expect(screen.getByText(/Grok renders a 10s clip for this 13.0s cutaway/).textContent).toContain('3.0s uncovered; split the scene rather than loop it');
+ const { rerender } = render(<SceneCard {...props} scene={{ ...scene, startSec: 0, endSec: 18 }} lipSyncBackend="grok" onSplit={onSplit} />);
+ expect(screen.getByText(/Grok renders a 15s clip for this 18.0s cutaway/).textContent).toContain('3.0s uncovered; split the scene rather than loop it');
fireEvent.click(screen.getByRole('button', { name: 'Split on lyric boundaries' }));
expect(onSplit).toHaveBeenCalledWith('timing', 'grok');
- rerender(<SceneCard {...props} scene={{ ...scene, startSec: 0, endSec: 10 + 1e-6 }} lipSyncBackend="grok" onSplit={onSplit} />);
+ rerender(<SceneCard {...props} scene={{ ...scene, startSec: 0, endSec: 15 + 1e-6 }} lipSyncBackend="grok" onSplit={onSplit} />);
expect(screen.queryByRole('button', { name: 'Split on lyric boundaries' })).toBeNull();
- rerender(<SceneCard {...props} scene={{ ...scene, startSec: 0, endSec: 10 + 2e-6 }} lipSyncBackend="grok" onSplit={onSplit} />);
+ rerender(<SceneCard {...props} scene={{ ...scene, startSec: 0, endSec: 15 + 2e-6 }} lipSyncBackend="grok" onSplit={onSplit} />);
expect(screen.getByRole('button', { name: 'Split on lyric boundaries' })).toBeTruthy();
rerender(<SceneCard {...props} scene={{ ...scene, endSec: null }} lipSyncBackend="grok" onSplit={onSplit} />);
expect(screen.queryByText(/Grok renders/)).toBeNull();
@@ -303,10 +303,10 @@ describe('scene timing and provider presentation (#11046)', () => {
it('merges at the provider limit including its epsilon, requires the next span for bounded providers, and preserves default-backend arguments', () => {
const onMergeNext = vi.fn();
const current = { ...scene, startSec: 0, endSec: 4 };
- const { rerender } = render(<SceneCard {...props} scene={current} lipSyncBackend="grok" nextEndSec={10 + 1e-6} onMergeNext={onMergeNext} />);
+ const { rerender } = render(<SceneCard {...props} scene={current} lipSyncBackend="grok" nextEndSec={15 + 1e-6} onMergeNext={onMergeNext} />);
fireEvent.click(screen.getByRole('button', { name: 'Merge with next' }));
expect(onMergeNext).toHaveBeenLastCalledWith('timing', 'grok');
- rerender(<SceneCard {...props} scene={current} lipSyncBackend="grok" nextEndSec={10 + 2e-6} onMergeNext={onMergeNext} />);
+ rerender(<SceneCard {...props} scene={current} lipSyncBackend="grok" nextEndSec={15 + 2e-6} onMergeNext={onMergeNext} />);
expect(screen.queryByRole('button', { name: 'Merge with next' })).toBeNull();
rerender(<SceneCard {...props} scene={current} lipSyncBackend="grok" onMergeNext={onMergeNext} />);
expect(screen.queryByRole('button', { name: 'Merge with next' })).toBeNull();