stably 4.12.21 → 4.12.22

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.
@@ -101,6 +101,12 @@ After all batches complete, provide:
101
101
  - List of any failed/skipped tests with reasons
102
102
  - Suggestions for resolving issues
103
103
 
104
+ ## Orchestrator Available
105
+
106
+ If `create-planner` and `create-worker` subagents are available (check your available subagent types), defer to the orchestrator for parallel execution instead of using this batch approach. The orchestrator groups tests by page and runs workers in parallel, which is faster than sequential batching. This skill applies only when the orchestrator subagents are not available.
107
+
108
+ Note: the batching guidance in this skill (browser-close between tests, batch sizes of ~6) still applies *within* each orchestrator worker — workers process their page group's tests sequentially with the same browser-reset pattern.
109
+
104
110
  ## Do NOT
105
111
 
106
112
  - Start creating tests without informing user of scope
@@ -231,6 +231,40 @@ stably-browser run-test --help
231
231
  - Overrides `browser`/`context`/`page` fixtures to connect via CDP (no new browser launched)
232
232
  - Preserves browser state after the run (pages remain open for inspection)
233
233
 
234
+ ## Test Creation Workflow
235
+
236
+ Use `stably-browser` as a live exploration tool during test creation, not just as a final verifier.
237
+
238
+ Preferred pattern when feasible:
239
+
240
+ 1. Open the page and explore it live.
241
+ ```bash
242
+ stably-browser open https://example.com/target
243
+ stably-browser click e15
244
+ stably-browser fill e22 "query"
245
+ ```
246
+
247
+ 2. Read the snapshot returned by each action.
248
+ - Treat the browser snapshot as ground truth for visible DOM structure, roles, labels, text, and control behavior.
249
+ - Use code/source reads for routes, feature flags, auth/setup, and hidden preconditions.
250
+
251
+ 3. Reuse emitted Playwright code.
252
+ - `stably-browser` actions emit concrete Playwright code/locator suggestions.
253
+ - Prefer copying that evidence into the test instead of inventing selectors from scratch.
254
+
255
+ 4. Run `stably-browser run-test` to verify.
256
+ - Use `run-test` after you understand the page, or earlier when it is needed to bootstrap project-aware auth/setup.
257
+ - After `run-test`, prefer inspecting the persisted browser/session before blindly rerunning from the error text alone.
258
+
259
+ 5. If auth/setup requires a project-aware bootstrap:
260
+ - Direct `open` may not reproduce Playwright project auth/setup on its own.
261
+ - In those repos, use `stably-browser run-test --project=<project>` or a seed test to establish the correct state, then inspect the persisted browser/session.
262
+
263
+ Anti-patterns:
264
+ - Guessing selectors from source code when the live browser already shows the actual DOM
265
+ - Treating `run-test` as the only discovery tool
266
+ - Blindly looping `run-test` → read error → edit without inspecting the browser state in between
267
+
234
268
  ### Running Multiple Tests — Sequential vs Parallel
235
269
 
236
270
  When verifying that multiple independent tests pass, each test needs its own clean browser state. Two approaches:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stably",
3
- "version": "4.12.21",
3
+ "version": "4.12.22",
4
4
  "packageManager": "pnpm@10.24.0",
5
5
  "description": "AI-powered E2E Playwright testing CLI. Stably can understand your codebase, edit/run tests, and handle complex test scenarios for you.",
6
6
  "main": "dist/index.mjs",