Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
test(studio): assert stopPropagation prevents onSelect on remove click
Vance Ingalls475f764e5a05
diff --git a/packages/studio/src/components/editor/propertyPanelFlatTextSection.test.tsx b/packages/studio/src/components/editor/propertyPanelFlatTextSection.test.tsxindex b3c5f10a8e..be526bb2a2 100644--- a/packages/studio/src/components/editor/propertyPanelFlatTextSection.test.tsx+++ b/packages/studio/src/components/editor/propertyPanelFlatTextSection.test.tsx@@ -79,6 +79,10 @@ describe("FlatTextLayerList", () => {);act(() => removeButton?.dispatchEvent(new MouseEvent("click", { bubbles: true })));expect(onRemove).toHaveBeenCalledWith("a");+ // stopPropagation on the remove button must prevent the row's own onClick+ // from also firing onSelect for the removed field's key.+ expect(onSelect).toHaveBeenCalledTimes(1);+ expect(onSelect).not.toHaveBeenCalledWith("a");act(() => root.unmount());});});