Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
chore(SKY-12746): rename studio run-view sections to Run inputs/Run outputs (#7600)
Celal Zamanoğlu83cd7272d405
diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.test.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.test.tsxindex c3e1eb248..a00ab89e3 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.test.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.test.tsx@@ -47,7 +47,7 @@ describe("RunInputsSection", () => {parameters={[["synthetic_key", "synthetic value"]]}/>,);- expect(screen.queryByText("Agent inputs")).not.toBeNull();+ expect(screen.queryByText("Run inputs")).not.toBeNull();expect(screen.queryByText(/synthetic_key/)).not.toBeNull();parametersOnly.unmount();@@ -64,7 +64,7 @@ describe("RunInputsSection", () => {/>,);expect(screen.queryByText("Block prompts")).not.toBeNull();- expect(screen.queryByText("Agent inputs")).toBeNull();+ expect(screen.queryByText("Run inputs")).toBeNull();expect(screen.queryByText("Prompt-only value")).not.toBeNull();promptsOnly.unmount();@@ -87,8 +87,8 @@ describe("RunInputsSection", () => {parameterJson.compareDocumentPosition(combinedPrompt) &Node.DOCUMENT_POSITION_FOLLOWING,).not.toBe(0);- // Agent inputs and Block prompts are distinct sibling sections.- expect(screen.queryByText("Agent inputs")).not.toBeNull();+ // Run inputs and Block prompts are distinct sibling sections.+ expect(screen.queryByText("Run inputs")).not.toBeNull();expect(screen.queryByText("Block prompts")).not.toBeNull();combined.unmount();diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.tsxindex db53813d5..49b85aa97 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunInputsSection.tsx@@ -147,7 +147,7 @@ export function RunInputsSection({{parameters.length > 0 ? (<div className="flex flex-col gap-2"><span className="text-xs font-medium text-muted-foreground">- Agent inputs+ Run inputs</span><OverviewCodeBlockvalue={JSON.stringify(agentInputs, null, 2)}diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.test.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.test.tsxindex f41ccc6c0..d79f24248 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.test.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.test.tsx@@ -36,13 +36,13 @@ const baseProps = {afterEach(cleanup);-describe("RunOutputsSection agent run outputs", () => {+describe("RunOutputsSection run outputs", () => {const outputs = {extracted_information: { answer: 42 },additional_output: "full-run-only",};- test("renders extracted information, then agent run outputs, then files", () => {+ test("renders extracted information, then run outputs, then files", () => {render(<RunOutputsSection{...baseProps}@@ -52,13 +52,11 @@ describe("RunOutputsSection agent run outputs", () => {/>,);const labels = screen- .getAllByText(- /^(Extracted information|Agent run outputs|Downloaded files)$/,- )+ .getAllByText(/^(Extracted information|Run outputs|Downloaded files)$/).map((el) => el.textContent);expect(labels).toEqual(["Extracted information",- "Agent run outputs",+ "Run outputs","Downloaded files",]);// The full outputs object carries a field that is absent from extracted info.@@ -81,7 +79,7 @@ describe("RunOutputsSection agent run outputs", () => {);});- test("shows the generated summary under agent run outputs", () => {+ test("shows the generated summary under run outputs", () => {render(<RunOutputsSection{...baseProps}@@ -93,14 +91,14 @@ describe("RunOutputsSection agent run outputs", () => {expect(screen.getByText("A short summary.")).not.toBeNull();});- test("renders no agent run outputs section when outputs is null", () => {+ test("renders no run outputs section when outputs is null", () => {render(<RunOutputsSection{...baseProps}files={[{ url: "https://x.test/y.pdf", filename: "y.pdf" }]}/>,);- expect(screen.queryByText("Agent run outputs")).toBeNull();+ expect(screen.queryByText("Run outputs")).toBeNull();expect(screen.queryByTestId("summarize")).toBeNull();});});diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.tsxindex 7d09364ca..623e6b41f 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunOutputsSection.tsx@@ -225,7 +225,7 @@ export function RunOutputsSection({<div className="flex flex-col gap-2"><div className="flex items-center justify-between"><span className="text-xs font-medium text-muted-foreground">- Agent run outputs+ Run outputs</span><SummarizeOutputkey={`run:${workflowRunId}`}diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsxindex 535046c46..67ddbfc9d 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunView.test.tsx@@ -714,7 +714,7 @@ describe("RunView output signals", () => {expect(scope.getByText("report.pdf")).not.toBeNull();});- test("surfaces the full agent run outputs below extracted information", () => {+ test("surfaces the full run outputs below extracted information", () => {seedCompletedRun({outputs: {extracted_information: { answer: 42 },@@ -729,7 +729,7 @@ describe("RunView output signals", () => {fireEvent.click(scope.getByRole("button", { name: /^Outputs/ }));expect(scope.getByText("Extracted information")).not.toBeNull();- expect(scope.getByText("Agent run outputs")).not.toBeNull();+ expect(scope.getByText("Run outputs")).not.toBeNull();});test("does not treat a user output parameter named errors as run errors", () => {