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

+3 -1
View File
@@ -7,8 +7,10 @@ const { countScriptSteps } = require("./scriptStepCounter.cjs");
test("countScriptSteps counts common nct calls", () => {
const source = `
await nct.screen.waitFor('$ ', 5000);
await nct.screen.waitForText('ready', 5000);
await nct.screen.waitForRegex('READY.*', 5000);
await nct.screen.sendLine('ls');
nct.log('done');
`;
assert.equal(countScriptSteps(source), 3);
assert.equal(countScriptSteps(source), 5);
});