@swmansion/argent 0.35.1-next.99 → 0.36.1-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.35.1-next.99",
3
+ "version": "0.36.1-next.0",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
6
6
  "license": "Apache-2.0",
@@ -98,5 +98,5 @@
98
98
  "vitest": "^5.0.5",
99
99
  "yaml": "^2.9.1"
100
100
  },
101
- "gitHead": "512c4ebaab29020a596ff3e0bd873af664ae2d53"
101
+ "gitHead": "55cef5cbb2744f082f11212b1ff1630174e399ab"
102
102
  }
@@ -59,6 +59,6 @@ Use `await-ui-element` to gate a step on a screen transition. To gate on an HTTP
59
59
  ## Screenshots & Android Notes
60
60
 
61
61
  - Call `screenshot` for initial state, baselines before visible UI changes, state after a delay, or when an attached capture shows a transitional/loading frame.
62
- - Keep the default downscaled capture for routine checks; reserve `scale: 1.0` (with `includeImageInContext: false`) for saving baselines/currents for `argent-screenshot-diff`.
62
+ - Keep the default downscaled capture for routine checks; reserve `scale: 1.0` (with `includeImageInContext: false` and `out` at an absolute path unique to this run) for saving baselines/currents for `argent-screenshot-diff`.
63
63
  - If `screenshot` times out, restart the device transport with `stop-simulator-server`.
64
64
  - **Android first-launch permissions:** `reinstall-app` on Android installs with `-g`, pre-granting runtime permissions on first launch.
@@ -19,7 +19,7 @@ Do not use screenshot diffing for tap-coordinate discovery. Use `describe` to fi
19
19
  ## 3. Deterministic Flow
20
20
 
21
21
  1. Navigate to the known-good state. Capture the baseline before the relevant interaction or before editing whenever feasible.
22
- 2. Save a baseline PNG with `screenshot` using `scale: 1.0` and `includeImageInContext: false`, so the full-size image stays out of context; keep the returned `path`. Use normal downscaled screenshots for everything else. Images of different sizes return `dimension_mismatch` and are not compared, so keep one baseline per device model.
22
+ 2. Save a baseline PNG with `screenshot` using `scale: 1.0` and `includeImageInContext: false`, so the full-size image stays out of context, and `out` at an absolute path unique to this run, so another session cannot overwrite it. Use normal downscaled screenshots for everything else. Images of different sizes return `dimension_mismatch` and are not compared, so keep one baseline per device model.
23
23
  3. Perform the interaction, apply the code change and navigate to the state under test, after the app reloads or rebuilds.
24
- 4. Call `screenshot-diff` with that `baselinePath`, `captureCurrent: true`, `udid`, and `outputDir`. If both images are already saved, pass `currentPath` instead of `captureCurrent`.
24
+ 4. Call `screenshot-diff` with that `out` path as `baselinePath`, `captureCurrent: true`, `udid`, and `outputDir`. If both images are already saved, pass `currentPath` instead of `captureCurrent`.
25
25
  5. Inspect the summary and artifact paths, then combine the diff with normal visual inspection and any structural/runtime evidence needed for the assertion.
@@ -13,7 +13,7 @@ Physical iPhone (`kind: "device"`): read `argent-ios-device-interact` first. `la
13
13
 
14
14
  For implementation tasks that modify visible UI, this workflow also serves as a visual acceptance path.
15
15
 
16
- 1. **Baseline screenshot**: call `screenshot` to see the current UI state. For visual regression comparison or UI change verification, capture the baseline at `scale: 1.0` with `includeImageInContext: false` and keep the returned `path` before editing whenever feasible.
16
+ 1. **Baseline screenshot**: call `screenshot` to see the current UI state. For visual regression comparison or UI change verification, capture the baseline at `scale: 1.0` with `includeImageInContext: false` and a run-unique absolute `out` path before editing whenever feasible.
17
17
  2. **Find target**: get element coordinates from a discovery tool before tapping:
18
18
  - **App screens (React Native included), in-app modals and system dialogs**: `describe`. Fall back to `screenshot` only if an overlay is not exposed reliably. When the app raises its own permission dialog, answer it here; that's the real flow under test. To take a prompt _out_ of the flow, use `argent-settings-permissions` during setup.
19
19
  3. **Interact**: perform the action (`gesture-tap`, `gesture-swipe`, `keyboard`, `button`, ...); you receive a screenshot and element tree automatically (an unchanged screenshot or identical/slightly changed tree references the earlier `Screenshot id` / `Tree id` with a note or `-`/`+` line diff instead of repeating it).