openspec-playwright 0.1.30 → 0.1.31

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.
@@ -7,7 +7,7 @@ compatibility: Requires openspec CLI, Playwright (with browsers installed), and
7
7
  **Architecture**: Uses CLI + SKILLs (not `init-agents`). This follows Playwright's recommended approach for coding agents — CLI is more token-efficient than loading MCP tool schemas into context. MCP is used only for Healer (UI inspection on failure).
8
8
  metadata:
9
9
  author: openspec-playwright
10
- version: "2.5"
10
+ version: "2.6"
11
11
  ---
12
12
 
13
13
  ## Input
@@ -207,10 +207,18 @@ If tests fail → analyze failures, use **Playwright MCP tools** to inspect UI s
207
207
  3. **Attempt heal** (up to 3 times):
208
208
  - Apply fix using `browser_snapshot` (prefer `getByRole`, `getByLabel`, `getByText`)
209
209
  - Re-run: `openspec-pw run <name> --project=<role>`
210
- 4. **After 3 failed attempts**:
211
- - Use `browser_console_messages` + `browser_snapshot` to confirm root cause
212
- - If app is clearly broken (e.g., API returns 500, element missing from flow) → add `test.skip()` + report "app bug — needs fix"
213
- - If unclear report with recommendation ("likely selector change, verify manually")
210
+ 4. **After 3 failed attempts**, collect evidence:
211
+
212
+ **Evidence checklist** (in order, stop at first match):
213
+ | Check | Signal | Decision |
214
+ |-------|--------|----------|
215
+ | `browser_console_messages` | ERROR-level messages present | App bug → `test.skip()` + report "console error" |
216
+ | `browser_snapshot` | Target element missing from DOM | App bug → `test.skip()` + report "element missing" |
217
+ | `browser_snapshot` | Element exists, no errors | Test bug → report recommendation |
218
+
219
+ - **App bug**: `test.skip('app bug — reason: <signal>')` + detailed report entry
220
+ - **Test bug**: report with "likely selector change, verify manually at file:line"
221
+ - Do NOT retry after evidence checklist — evidence is conclusive
214
222
 
215
223
  ### 9. Report results
216
224
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openspec-playwright",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "OpenSpec + Playwright E2E verification setup tool for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
package/release-notes.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## What's Changed
2
2
 
3
- - feat(skill): add explicit Healer failure classification (v2.5)
3
+ - feat(skill): add evidence checklist for Healer skip decision (v2.6)
4
4
 
5
- **Full Changelog**: https://github.com/wxhou/openspec-playwright/releases/tag/v0.1.30
5
+ **Full Changelog**: https://github.com/wxhou/openspec-playwright/releases/tag/v0.1.31