mobilewright 0.0.66 → 0.0.67

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 (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -338,6 +338,10 @@ await expect(locator).toBeVisible({ timeout: 10_000 });
338
338
  // Soft assertions record the failure but let the test keep running (Playwright semantics)
339
339
  await expect.soft(locator).toHaveText('Success');
340
340
  await expect.soft(locator, 'eta should be shown').not.toBeEmpty();
341
+
342
+ // Retry any value matcher until it passes, and match promise rejections (Playwright semantics)
343
+ await expect.poll(() => device.getOrientation()).toBe('landscape');
344
+ await expect(locator.tap({ timeout: 1000 })).rejects.toThrow('timed out');
341
345
  ```
342
346
 
343
347
  ### Role Mapping
@@ -386,7 +390,7 @@ All options:
386
390
  | `bundleId` | `string` | App bundle ID (optional) |
387
391
  | `deviceId` | `string` | Explicit device UDID (optional) |
388
392
  | `deviceName` | `RegExp` | RegExp to match device name (optional) |
389
- | `installApps` | `string \| string[]` | App paths (APK/IPA) to install before launching (optional) |
393
+ | `installApps` | `string \| string[]` | App paths (APK/IPA) to install before launching; relative paths resolve against the config file's directory (optional) |
390
394
  | `autoAppLaunch` | `boolean` | Terminate and launch the app (`bundleId`) before each test. Default: `true` |
391
395
  | `viewTree` | `'on-failure' \| 'off'` | Attach the accessibility tree as JSON to the report on failure. Default: `'off'` |
392
396
  | `timeout` | `number` | Per-test timeout in ms (optional) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobilewright",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "Mobile device automation framework inspired by Playwright",
5
5
  "homepage": "https://mobilewright.dev",
6
6
  "license": "Apache-2.0",
@@ -34,11 +34,11 @@
34
34
  "templates"
35
35
  ],
36
36
  "dependencies": {
37
- "@mobilewright/core": "^0.0.66",
38
- "@mobilewright/driver-mobilecli": "^0.0.66",
39
- "@mobilewright/driver-mobilenext": "^0.0.66",
40
- "@mobilewright/inspector": "^0.0.66",
41
- "@mobilewright/protocol": "^0.0.66",
37
+ "@mobilewright/core": "^0.0.67",
38
+ "@mobilewright/driver-mobilecli": "^0.0.67",
39
+ "@mobilewright/driver-mobilenext": "^0.0.67",
40
+ "@mobilewright/inspector": "^0.0.67",
41
+ "@mobilewright/protocol": "^0.0.67",
42
42
  "commander": "^15.0.0",
43
43
  "open": "^10.2.0",
44
44
  "debug": "^4.4.3",