diff --git a/agenta-web/src/components/Playground/Views/TestView.tsx b/agenta-web/src/components/Playground/Views/TestView.tsx index 749ee56974..fd542a6de2 100644 --- a/agenta-web/src/components/Playground/Views/TestView.tsx +++ b/agenta-web/src/components/Playground/Views/TestView.tsx @@ -281,7 +281,7 @@ const App: React.FC = ({inputParams, optParams, variant, isChatVa const funcs: Function[] = [] rootRef.current ?.querySelectorAll("[data-cy=testview-input-parameters-run-button]") - .forEach((btn) => funcs.push((btn as HTMLButtonElement).click)) + .forEach((btn) => funcs.push(() => (btn as HTMLButtonElement).click())) batchExecute(funcs, {allowRetry: true, batchSize: 10}) }