Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
chore(SKY-12238): rename studio Run CTA "Run agent" to "Run" (#7605)
Celal Zamanoğlu480cc35389f1
diff --git a/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.test.tsx b/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.test.tsxindex 8b3875cdb..b9c82d7bb 100644--- a/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.test.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/WorkflowEditor.test.tsx@@ -145,7 +145,7 @@ describe("WorkflowEditor deleted-agent run fallback", () => {.disabled,).toBe(true);expect(screen.queryByLabelText("Save workflow")).toBeNull();- expect(screen.queryByRole("button", { name: /^Run agent$/ })).toBeNull();+ expect(screen.queryByRole("button", { name: /^Run$/ })).toBeNull();});test("stays on the loading pulse while the run fallback is still loading", () => {diff --git a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.test.tsx b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.test.tsxindex 3a04599f7..dfd090dd8 100644--- a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.test.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.test.tsx@@ -146,7 +146,7 @@ describe("RunStopButton concurrency with a live block run", () => {mockRun(Status.Completed);renderAt("/workflows/wpid_1/studio?wr=wr_1");- fireEvent.click(screen.getByRole("button", { name: "Re-run agent" }));+ fireEvent.click(screen.getByRole("button", { name: "Re-run" }));expect(screen.queryByText("Start a full run?")).toBeNull();expect(screen.getByTestId("location").textContent).toBe(@@ -166,7 +166,7 @@ describe("RunStopButton concurrency with a live block run", () => {workflowRunQueryMock.mockReturnValue({ data: undefined });renderAt("/workflows/wpid_1/studio");- fireEvent.click(screen.getByRole("button", { name: "Run agent" }));+ fireEvent.click(screen.getByRole("button", { name: "Run" }));expect(screen.getByTestId("location").textContent).toBe("/agents/wpid_1/run",@@ -180,7 +180,7 @@ describe("RunStopButton concurrency with a live block run", () => {mockRun(Status.Completed, { workflow_run_id: "wr_previous" });renderAt("/workflows/wpid_1/studio?wr=wr_1");- fireEvent.click(screen.getByRole("button", { name: "Run agent" }));+ fireEvent.click(screen.getByRole("button", { name: "Run" }));expect(screen.getByTestId("location").textContent).toBe("/agents/wpid_1/run",@@ -192,7 +192,7 @@ describe("RunStopButton concurrency with a live block run", () => {mockRun(Status.Completed);renderAt("/workflows/wpid_1/studio?wr=wr_1&bl=Block%201");- fireEvent.click(screen.getByRole("button", { name: "Run agent" }));+ fireEvent.click(screen.getByRole("button", { name: "Run" }));expect(screen.getByTestId("location").textContent).toBe("/agents/wpid_1/run",@@ -204,7 +204,7 @@ describe("RunStopButton concurrency with a live block run", () => {mockRun(Status.Failed, { task_v2: { task_id: "task_synthetic" } });renderAt("/workflows/wpid_1/studio?wr=wr_1");- fireEvent.click(screen.getByRole("button", { name: "Run agent" }));+ fireEvent.click(screen.getByRole("button", { name: "Run" }));expect(screen.getByTestId("location").textContent).toBe("/agents/wpid_1/run",@@ -216,7 +216,7 @@ describe("RunStopButton concurrency with a live block run", () => {mockRun(Status.Completed);renderAt("/workflows/wpid_1/studio?wr=wr_1&panes=editor,copilot");- fireEvent.click(screen.getByRole("button", { name: "Re-run agent" }));+ fireEvent.click(screen.getByRole("button", { name: "Re-run" }));expect(screen.getByTestId("location").textContent).toBe("/agents/wpid_1/run",diff --git a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsxindex 32c257074..b9c754216 100644--- a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx@@ -348,7 +348,7 @@ export function RunStopButton({ stopOnly = false }: { stopOnly?: boolean }) {className="h-8 border border-transparent px-3"disabled={isRecording}>- <PlayIcon className="mr-2 size-4" /> Run agent+ <PlayIcon className="mr-2 size-4" /> Run</Button></DialogTrigger><DialogContent>@@ -384,7 +384,7 @@ export function RunStopButton({ stopOnly = false }: { stopOnly?: boolean }) {onClick={startFullRun}><PlayIcon className="mr-2 size-4" />- {rerunEligible ? "Re-run agent" : "Run agent"}+ {rerunEligible ? "Re-run" : "Run"}</Button>);}