@testspectra/cli 1.0.43 → 1.0.44
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/types/generator.js
CHANGED
|
@@ -191,26 +191,6 @@ export class TypeGenerator {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
// 2. Built-in Spectra Static Methods & Custom Actions
|
|
194
|
-
content += `\ninterface SpectraStaticInstance {\n`;
|
|
195
|
-
content += ` get(target: any): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
196
|
-
content += ` getAll(selector: string): import('@testspectra/matchers').MultiElementRunner;\n`;
|
|
197
|
-
content += ` navigate(url: string): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
198
|
-
content += ` back(): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
199
|
-
content += ` refresh(): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
200
|
-
content += ` click(target: any, textOrOptions?: string | import('@testspectra/matchers').ClickOptions): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
201
|
-
content += ` doubleClick(target: any, textOrOptions?: string | import('@testspectra/matchers').ClickOptions): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
202
|
-
content += ` longPress(target: any, options?: import('@testspectra/matchers').LongPressOptions | number): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
203
|
-
content += ` type(target: any, value: string, options?: import('@testspectra/matchers').TypeOptions): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
204
|
-
content += ` clear(target: any): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
205
|
-
content += ` select(target: any, value: string): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
206
|
-
content += ` hover(target: any): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
207
|
-
content += ` pressKey(key: import('@testspectra/matchers').KeyOption | string): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
208
|
-
content += ` dragDrop(sourceTarget: any, destTarget: any): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
209
|
-
content += ` scroll(options?: import('@testspectra/matchers').ScrollOptions): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
210
|
-
content += ` swipe(options: import('@testspectra/matchers').SwipeOptions): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
211
|
-
content += ` wait(durationMs: number): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
212
|
-
content += ` waitForElement(target: any, timeoutMs?: number): import('@testspectra/matchers').SingleElementRunner;\n`;
|
|
213
|
-
content += `}\n\n`;
|
|
214
194
|
content += `interface TestSpectraCustomActions {\n`;
|
|
215
195
|
const declaredActions = new Set();
|
|
216
196
|
for (const actionsDir of actionsDirs) {
|
|
@@ -262,7 +242,7 @@ export class TypeGenerator {
|
|
|
262
242
|
}
|
|
263
243
|
}
|
|
264
244
|
content += `}\n`;
|
|
265
|
-
content += `type TestSpectraActions =
|
|
245
|
+
content += `type TestSpectraActions = import('@testspectra/matchers').SpectraStatic & TestSpectraCustomActions;\n`;
|
|
266
246
|
content += `declare const Spectra: TestSpectraActions;\n\n`;
|
|
267
247
|
// 3. Built-in Steps Declaration
|
|
268
248
|
content += `interface TestSpectraSteps {\n`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testspectra/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"description": "TestSpectra Zero-Config Cross-Platform Test Runner CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@clack/prompts": "^1.7.0",
|
|
24
|
-
"@testspectra/matchers": "^1.0.
|
|
24
|
+
"@testspectra/matchers": "^1.0.44",
|
|
25
25
|
"chalk": "^5.3.0",
|
|
26
26
|
"commander": "^12.1.0",
|
|
27
27
|
"dotenv": "^16.4.5",
|