Fix explicit script wait APIs (#1885)

This commit is contained in:
陈大猫 authored and GitHub committed 2026-07-02 17:48:04 +08:00
1 parent eedb123b3a
commit a46c3321db
17 files changed
+659 -30

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ function stepsToJavaScript(steps, recordedAt) {
}
lines.push(` await nct.screen.sendLine(${escapeJsString(step.value)});`);
} else if (step.type === "waitFor") {
lines.push(` await nct.screen.waitFor(${escapeJsString(step.value)}, ${step.timeoutMs || 5000});`);
lines.push(` await nct.screen.waitForText(${escapeJsString(step.value)}, ${step.timeoutMs || 5000});`);
} else if (step.type === "waitForPrompt") {
lines.push(` await nct.screen.waitForPrompt(${step.timeoutMs || 30000});`);
} else if (step.type === "sleep") {