@desplega.ai/qa-use 2.3.3 → 2.4.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.
Files changed (35) hide show
  1. package/dist/lib/api/browser-types.d.ts +21 -2
  2. package/dist/lib/api/browser-types.d.ts.map +1 -1
  3. package/dist/lib/api/index.d.ts +1 -0
  4. package/dist/lib/api/index.d.ts.map +1 -1
  5. package/dist/lib/api/index.js +5 -1
  6. package/dist/lib/api/index.js.map +1 -1
  7. package/dist/package.json +1 -1
  8. package/dist/src/cli/commands/browser/drag.d.ts +6 -0
  9. package/dist/src/cli/commands/browser/drag.d.ts.map +1 -0
  10. package/dist/src/cli/commands/browser/drag.js +79 -0
  11. package/dist/src/cli/commands/browser/drag.js.map +1 -0
  12. package/dist/src/cli/commands/browser/index.d.ts.map +1 -1
  13. package/dist/src/cli/commands/browser/index.js +6 -0
  14. package/dist/src/cli/commands/browser/index.js.map +1 -1
  15. package/dist/src/cli/commands/browser/mfa-totp.d.ts +6 -0
  16. package/dist/src/cli/commands/browser/mfa-totp.d.ts.map +1 -0
  17. package/dist/src/cli/commands/browser/mfa-totp.js +120 -0
  18. package/dist/src/cli/commands/browser/mfa-totp.js.map +1 -0
  19. package/dist/src/cli/commands/browser/run.d.ts.map +1 -1
  20. package/dist/src/cli/commands/browser/run.js +159 -0
  21. package/dist/src/cli/commands/browser/run.js.map +1 -1
  22. package/dist/src/cli/commands/browser/upload.d.ts +6 -0
  23. package/dist/src/cli/commands/browser/upload.d.ts.map +1 -0
  24. package/dist/src/cli/commands/browser/upload.js +93 -0
  25. package/dist/src/cli/commands/browser/upload.js.map +1 -0
  26. package/dist/src/cli/commands/test/index.d.ts.map +1 -1
  27. package/dist/src/cli/commands/test/index.js +2 -0
  28. package/dist/src/cli/commands/test/index.js.map +1 -1
  29. package/dist/src/cli/commands/test/runs.d.ts +6 -0
  30. package/dist/src/cli/commands/test/runs.d.ts.map +1 -0
  31. package/dist/src/cli/commands/test/runs.js +147 -0
  32. package/dist/src/cli/commands/test/runs.js.map +1 -0
  33. package/lib/api/browser-types.ts +30 -2
  34. package/lib/api/index.ts +5 -1
  35. package/package.json +1 -1
@@ -62,7 +62,10 @@ export type BrowserActionType =
62
62
  | 'wait_for_selector'
63
63
  | 'wait_for_load'
64
64
  | 'snapshot'
65
- | 'screenshot';
65
+ | 'screenshot'
66
+ | 'drag_and_drop'
67
+ | 'mfa_totp'
68
+ | 'set_input_files';
66
69
 
67
70
  export type ScrollDirection = 'up' | 'down' | 'left' | 'right';
68
71
 
@@ -186,6 +189,28 @@ export interface ScreenshotAction {
186
189
  type: 'screenshot';
187
190
  }
188
191
 
192
+ export interface DragAndDropAction {
193
+ type: 'drag_and_drop';
194
+ ref?: string;
195
+ text?: string;
196
+ target_ref?: string;
197
+ target_selector?: string;
198
+ }
199
+
200
+ export interface MfaTotpAction {
201
+ type: 'mfa_totp';
202
+ secret: string;
203
+ ref?: string;
204
+ text?: string;
205
+ }
206
+
207
+ export interface SetInputFilesAction {
208
+ type: 'set_input_files';
209
+ ref?: string;
210
+ text?: string;
211
+ files: string[];
212
+ }
213
+
189
214
  export type BrowserAction =
190
215
  | GotoAction
191
216
  | BackAction
@@ -206,7 +231,10 @@ export type BrowserAction =
206
231
  | WaitForSelectorAction
207
232
  | WaitForLoadAction
208
233
  | SnapshotAction
209
- | ScreenshotAction;
234
+ | ScreenshotAction
235
+ | DragAndDropAction
236
+ | MfaTotpAction
237
+ | SetInputFilesAction;
210
238
 
211
239
  // ==========================================
212
240
  // API Response Types
package/lib/api/index.ts CHANGED
@@ -157,6 +157,7 @@ export interface TestRun {
157
157
  export interface ListTestRunsOptions {
158
158
  test_id?: string;
159
159
  run_id?: string;
160
+ run_status?: 'pending' | 'running' | 'passed' | 'failed' | 'skipped' | 'cancelled' | 'timeout';
160
161
  limit?: number;
161
162
  offset?: number;
162
163
  }
@@ -652,11 +653,14 @@ export class ApiClient {
652
653
  const params = new URLSearchParams();
653
654
  if (options.test_id) params.append('test_id', options.test_id);
654
655
  if (options.run_id) params.append('run_id', options.run_id);
656
+ if (options.run_status) params.append('run_status', options.run_status);
655
657
  if (options.limit !== undefined) params.append('limit', options.limit.toString());
656
658
  if (options.offset !== undefined) params.append('offset', options.offset.toString());
657
659
 
660
+ // Use /api/v1/test-runs instead of /vibe-qa/tests-runs
661
+ // The v1 endpoint properly supports limit, offset, and run_status filters
658
662
  const response: AxiosResponse = await this.client.get(
659
- `/vibe-qa/tests-runs?${params.toString()}`
663
+ `/api/v1/test-runs?${params.toString()}`
660
664
  );
661
665
  return response.data as TestRun[];
662
666
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desplega.ai/qa-use",
3
- "version": "2.3.3",
3
+ "version": "2.4.0",
4
4
  "packageManager": "bun@^1.3.4",
5
5
  "description": "QA automation tool for browser testing with MCP server support",
6
6
  "type": "module",