Skip to content

Automate browser based workflows with AI

Wait min time should be 1 sec (#1267)

Shuchang Zheng38c42b6b4806
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/WaitNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/WaitNode.tsx
index 7d1f71210..d8703b573 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/WaitNode.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/WaitNode.tsx
@@ -76,7 +76,7 @@ function WaitNode({ id, data }: NodeProps<WaitNode>) {
</div>
<Input
type="number"
- min="0"
+ min="1"
max="300"
value={inputs.waitInSeconds}
onChange={(event) => {
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/types.ts b/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/types.ts
index 2113eb485..7720aea57 100644
--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/types.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WaitNode/types.ts
@@ -11,7 +11,7 @@ export const waitNodeDefaultData: WaitNodeData = {
label: "",
continueOnFailure: false,
editable: true,
- waitInSeconds: 0,
+ waitInSeconds: 1,
};
export function isWaitNode(node: Node): node is WaitNode {
diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
index fb91e4589..a294c848f 100644
--- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
@@ -282,7 +282,7 @@ function convertToNode(
type: "wait",
data: {
...commonData,
- waitInSeconds: block.wait_sec ?? 0,
+ waitInSeconds: block.wait_sec ?? 1,
},
};
}