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

Music video page test: expect the draft's include and length choices

Claude2794ca1b37ff
diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsx
index 6cb73ba670..4e64beccf2 100644
--- a/client/src/pages/MusicVideo.test.jsx
+++ b/client/src/pages/MusicVideo.test.jsx
@@ -2590,9 +2590,9 @@ describe('MusicVideo stage tabs (#9243)', () => {
expect(await screen.findByLabelText(/Making-of notes/)).toHaveValue('Example second story');
expect(screen.getByLabelText(/Full video URL/)).toHaveValue('https://example.com/second');
fireEvent.click(screen.getByRole('button', { name: 'Draft copy' }));
- await waitFor(() => expect(draftMusicVideoPublishCopy).toHaveBeenCalledWith(second.id, {
- notes: 'Example second story', links: { youtube: 'https://example.com/second' },
- }));
+ await waitFor(() => expect(draftMusicVideoPublishCopy).toHaveBeenCalledWith(second.id, expect.objectContaining({
+ notes: 'Example second story', links: { youtube: 'https://example.com/second' }, length: 'short',
+ })));
});
it('opens the stage named in the URL, falls back to the project\'s own stage for an unknown one, and the tabs navigate', async () => {