@midscene/cli 1.9.4 → 1.9.5-beta-20260611031026.0
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/es/framework/index.mjs +55 -22
- package/dist/es/framework/index.mjs.map +1 -1
- package/dist/es/index.mjs +38 -19
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/framework/index.js +54 -21
- package/dist/lib/framework/index.js.map +1 -1
- package/dist/lib/index.js +35 -16
- package/dist/lib/index.js.map +1 -1
- package/dist/types/framework/index.d.ts +10 -2
- package/package.json +8 -8
|
@@ -5,6 +5,7 @@ import type { MidsceneYamlScriptEnv } from '@midscene/core';
|
|
|
5
5
|
import type { MidsceneYamlScriptIOSEnv } from '@midscene/core';
|
|
6
6
|
import type { MidsceneYamlScriptWebEnv } from '@midscene/core';
|
|
7
7
|
import { ScriptPlayer } from '@midscene/core/yaml';
|
|
8
|
+
import type { test } from '@rstest/core';
|
|
8
9
|
|
|
9
10
|
declare interface BatchRunnerConfig {
|
|
10
11
|
files: string[];
|
|
@@ -45,13 +46,16 @@ export declare interface CreateRstestYamlProjectOptions {
|
|
|
45
46
|
bail?: number;
|
|
46
47
|
retry?: number;
|
|
47
48
|
batchConfig?: BatchRunnerConfig;
|
|
49
|
+
rstestCoreImport?: string;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
export declare const createYamlCaseFailure: (result: MidsceneYamlConfigResult) => Error;
|
|
51
53
|
|
|
52
54
|
export declare const createYamlCaseResult: (file: string, player: ScriptPlayer<MidsceneYamlScriptEnv>, duration: number) => MidsceneYamlConfigResult;
|
|
53
55
|
|
|
54
|
-
export declare function defineYamlBatchTest(options: DefineYamlBatchTestOptions): void;
|
|
56
|
+
export declare function defineYamlBatchTest(test: RstestTest, options: DefineYamlBatchTestOptions): void;
|
|
57
|
+
|
|
58
|
+
export declare function defineYamlBatchTest(options: DefineYamlBatchTestOptions): Promise<void>;
|
|
55
59
|
|
|
56
60
|
export declare interface DefineYamlBatchTestOptions {
|
|
57
61
|
testName: string;
|
|
@@ -59,7 +63,9 @@ export declare interface DefineYamlBatchTestOptions {
|
|
|
59
63
|
resultFiles: Record<string, string>;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
export declare function defineYamlCaseTest(options: DefineYamlCaseTestOptions): void;
|
|
66
|
+
export declare function defineYamlCaseTest(test: RstestTest, options: DefineYamlCaseTestOptions): void;
|
|
67
|
+
|
|
68
|
+
export declare function defineYamlCaseTest(options: DefineYamlCaseTestOptions): Promise<void>;
|
|
63
69
|
|
|
64
70
|
export declare interface DefineYamlCaseTestOptions {
|
|
65
71
|
testName: string;
|
|
@@ -111,6 +117,8 @@ export declare function resolveRstestCoreImportPath(): string;
|
|
|
111
117
|
|
|
112
118
|
export declare const resolveTestName: (projectDir: string, yamlFile: string) => string;
|
|
113
119
|
|
|
120
|
+
declare type RstestTest = typeof test;
|
|
121
|
+
|
|
114
122
|
export declare type RstestYamlCaseOptions = Omit<RunYamlCaseOptions, 'file' | 'headed' | 'keepWindow'>;
|
|
115
123
|
|
|
116
124
|
export declare function runFrameworkTestConfig(config: BatchRunnerConfig, commandOptions?: FrameworkTestCommandOptions): Promise<number>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/cli",
|
|
3
3
|
"description": "An AI-powered automation SDK can control the page, perform assertions, and extract data in JSON format using natural language. See https://midscenejs.com/ for details.",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.5-beta-20260611031026.0",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"http-server": "14.1.1",
|
|
20
20
|
"lodash.merge": "4.6.2",
|
|
21
21
|
"puppeteer": "24.6.0",
|
|
22
|
-
"@midscene/
|
|
23
|
-
"@midscene/
|
|
24
|
-
"@midscene/core": "1.9.
|
|
25
|
-
"@midscene/
|
|
26
|
-
"@midscene/
|
|
27
|
-
"@midscene/
|
|
28
|
-
"@midscene/web": "1.9.
|
|
22
|
+
"@midscene/android": "1.9.5-beta-20260611031026.0",
|
|
23
|
+
"@midscene/computer": "1.9.5-beta-20260611031026.0",
|
|
24
|
+
"@midscene/core": "1.9.5-beta-20260611031026.0",
|
|
25
|
+
"@midscene/harmony": "1.9.5-beta-20260611031026.0",
|
|
26
|
+
"@midscene/shared": "1.9.5-beta-20260611031026.0",
|
|
27
|
+
"@midscene/ios": "1.9.5-beta-20260611031026.0",
|
|
28
|
+
"@midscene/web": "1.9.5-beta-20260611031026.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rslib/core": "^0.18.3",
|