Skip to content

feat(#39): Add MCP browser testing patterns reference - #44

Merged
admarble merged 1 commit into
mainfrom
feature/39-feat-add-mcp-browser-testing-patterns-reference
Jan 10, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/39-feat-add-mcp-browser-testing-patterns-reference

Conversation

@admarble

@admarble admarble commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add comprehensive browser-testing-patterns.md reference document with patterns for Chrome DevTools MCP browser automation
  • Include patterns for: forms, modals, grids/tables, multi-select, and async content
  • Add troubleshooting section with common issues and solutions
  • Link from /test skill's Browser Testing Best Practices section

Test plan

  • Verify file created at .claude/skills/test/references/browser-testing-patterns.md
  • Verify patterns include: forms, modals, grids, multi-select, async
  • Verify troubleshooting section covers: element not found, timeouts, dialogs
  • Verify link added to .claude/skills/test/SKILL.md
  • npm test passes
  • npm run build passes

Closes #39

🤖 Generated with Claude Code

Add comprehensive browser testing patterns documentation for Chrome
DevTools MCP automation. Includes patterns for forms, modals, grids,
multi-select, async content, and troubleshooting common issues.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 550324c into main Jan 10, 2026
admarble added a commit that referenced this pull request May 8, 2026
)

* fix(#592): reconcile in_progress state when PR is merged on GitHub

reconcileStateAtStartup previously only escalated `ready_for_merge`
entries to `merged`. When a PR was merged outside the current sequant
session (separate process, `gh pr merge`, web UI, --force push), the
local state.json could keep `status: "in_progress"` indefinitely. The
pre-flight guard at run-orchestrator.ts:472-498 then let the issue
through, exec spawned for ~3 minutes producing no diff, and the
generic MCP fallback retry burned another spawn.

Relax the loop guard to also process `in_progress`. Existing PR-status
+ git-fallback logic and the `resolvedAt` stamp need no other changes.
The pre-flight skip message at run-orchestrator.ts:484 then handles the
skip with its current voice — `--force` continues to bypass.

Add state-cleanup.test.ts covering the in_progress → merged escalation
with mocked GitHubProvider, plus the offline (PR status null) fallthrough.
Update one state-utils.test.ts case whose old assertion documented the
pre-#592 behavior, and add a spawnSync mock to it (real git was
collapsing #44 onto an actual `(#44)` merge commit in this repo).

* docs(#592): add CHANGELOG entry for in_progress reconcile fix

* test(#592): cover git-fallback escalation + cross-ref in what-weve-built

Two gap-fix follow-ups from adversarial QA second look:

1. Add test exercising the in_progress → merged escalation via the
   git-fallback branch (no pr.number recorded, isIssueMergedIntoMain
   matches a merge commit). Required adding vi.mock("child_process")
   so spawnSync is controllable per-test; default mock returns status:1
   so existing tests (which expected real git to fail in tempDir)
   continue to work without per-test wiring.

2. Update docs/internal/what-weve-built.md so the auto-reconciliation
   bullet under the #305 entry forward-references the #592 extension
   (still escalates ready_for_merge AND now in_progress).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add MCP browser testing patterns reference

1 participant