@yoqa/cli 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +23 -2
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -6327,6 +6327,11 @@ var caseScriptActionSchema = exports_external.union([
|
|
|
6327
6327
|
text: exports_external.string().min(1),
|
|
6328
6328
|
timeoutMs: exports_external.number().min(0).max(120000).optional(),
|
|
6329
6329
|
reason: exports_external.string().optional()
|
|
6330
|
+
}),
|
|
6331
|
+
exports_external.object({
|
|
6332
|
+
type: exports_external.literal("alert"),
|
|
6333
|
+
alertAction: exports_external.union([exports_external.literal("accept"), exports_external.literal("dismiss")]).default("accept"),
|
|
6334
|
+
reason: exports_external.string().optional()
|
|
6330
6335
|
})
|
|
6331
6336
|
]);
|
|
6332
6337
|
var caseScriptSchema = exports_external.object({
|
|
@@ -6829,6 +6834,9 @@ function actionSummary(action) {
|
|
|
6829
6834
|
return `Type${typeof record.text === "string" ? `: ${record.text}` : ""}`;
|
|
6830
6835
|
if (type === "wait")
|
|
6831
6836
|
return "Wait";
|
|
6837
|
+
if (type === "alert") {
|
|
6838
|
+
return record.alertAction === "dismiss" ? "Dismiss alert" : "Accept alert";
|
|
6839
|
+
}
|
|
6832
6840
|
if (type === "assert") {
|
|
6833
6841
|
const assertion = typeof record.assertion === "string" ? record.assertion : "visible";
|
|
6834
6842
|
const text = typeof record.text === "string" ? record.text : "";
|
|
@@ -8007,7 +8015,7 @@ var {
|
|
|
8007
8015
|
// package.json
|
|
8008
8016
|
var package_default = {
|
|
8009
8017
|
name: "@yoqa/cli",
|
|
8010
|
-
version: "0.3.
|
|
8018
|
+
version: "0.3.23",
|
|
8011
8019
|
description: "Yoqa CLI — drive local mobile QA from the terminal or CI (talks to the Yoqa runner over HTTP)",
|
|
8012
8020
|
license: "UNLICENSED",
|
|
8013
8021
|
type: "module",
|
|
@@ -8045,7 +8053,7 @@ var package_default = {
|
|
|
8045
8053
|
health: "bun run src/main.ts health"
|
|
8046
8054
|
},
|
|
8047
8055
|
dependencies: {
|
|
8048
|
-
"@yoqa/runner": "0.3.
|
|
8056
|
+
"@yoqa/runner": "0.3.23"
|
|
8049
8057
|
},
|
|
8050
8058
|
devDependencies: {
|
|
8051
8059
|
"@types/node": "^22.15.30",
|
|
@@ -9774,6 +9782,19 @@ scriptCmd.command("run").argument("<file>", "Path to a .yoqa.json / CaseScript J
|
|
|
9774
9782
|
}
|
|
9775
9783
|
continue;
|
|
9776
9784
|
}
|
|
9785
|
+
if (action2.type === "alert") {
|
|
9786
|
+
const body2 = await c.performAction({
|
|
9787
|
+
kind: "alert",
|
|
9788
|
+
alertAction: action2.alertAction === "dismiss" ? "dismiss" : "accept"
|
|
9789
|
+
});
|
|
9790
|
+
if (options.json) {
|
|
9791
|
+
console.log(JSON.stringify({ ...body2, step: idx }, null, 2));
|
|
9792
|
+
} else {
|
|
9793
|
+
console.log(`ok ${body2.kind} (${idx}/${script.actions.length})`);
|
|
9794
|
+
}
|
|
9795
|
+
await sleep(800);
|
|
9796
|
+
continue;
|
|
9797
|
+
}
|
|
9777
9798
|
const tapBody = { kind: "tap" };
|
|
9778
9799
|
if (action2.type === "tap") {
|
|
9779
9800
|
if (action2.label)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoqa/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"description": "Yoqa CLI — drive local mobile QA from the terminal or CI (talks to the Yoqa runner over HTTP)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"health": "bun run src/main.ts health"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@yoqa/runner": "0.3.
|
|
41
|
+
"@yoqa/runner": "0.3.23"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.15.30",
|