Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

Expect the OpenMotion display name while preserving the stored mode

bone3deep1962-collab76cbeb5acd0f
diff --git a/studio/src/motion/ProjectConversation.test.tsx b/studio/src/motion/ProjectConversation.test.tsx
index e928dab4..95de2e6e 100644
--- a/studio/src/motion/ProjectConversation.test.tsx
+++ b/studio/src/motion/ProjectConversation.test.tsx
@@ -66,7 +66,8 @@ it('submits a selected Motion template with the request instead of opening it du
const template = { id: 'product-promo', title: 'Product Promo' } as any;
await act(async () => root.render(<I18nProvider initialLocale="en"><HomeComposer template={template} onClear={vi.fn()} /></I18nProvider>));
expect(state.create).not.toHaveBeenCalled();
- expect(container.querySelector('select')!.textContent).toBe('Motion');
+ expect(container.querySelector('select')!.textContent).toBe('OpenMotion');
+ expect(container.querySelector('select')!.value).toBe('motion');
expect(container.querySelector('.motion-selected-template')!.textContent).toContain('Product Promo');
type('A 12 second launch'); await submit();
expect(state.create).toHaveBeenCalledWith('A 12 second launch', 'product-promo');