Repository navigation
Closed
Labels
documentationImprovements or additions to documentation
Description
Problem
Browser testing with Chrome DevTools MCP works well but requires knowing the tool patterns. New users or sessions without prior context have to rediscover:
- How to fill forms and submit
- How to test modals
- How to interact with grids
- When to use snapshot vs screenshot
- How to wait for async content
Proposed Solution
Create test/references/browser-testing-patterns.md:
# Browser Testing Patterns
Common patterns for Chrome DevTools MCP browser automation.
## Form Testing- take_snapshot - identify form fields
- fill_form([{uid: "email-input", value: "[email protected]"}, ...])
- click({uid: "submit-button"})
- wait_for({text: "Success"}) or take_snapshot to verify
## Modal Testing
- click({uid: "open-modal-button"})
- take_snapshot - verify modal content
- fill if needed
- click({uid: "confirm-button"})
- take_snapshot - verify modal closed
## Grid/Table Testing (AG Grid, etc.)
- take_snapshot - find cell uid
- click({uid: "cell-uid", dblClick: true}) - enter edit mode
- fill({uid: "cell-input", value: "new value"})
- press_key({key: "Enter"}) - confirm edit
- take_snapshot - verify change
## Multi-Select Testing
- click({uid: "row-1-checkbox"})
- click({uid: "row-3-checkbox"})
- click({uid: "bulk-action-button"})
- take_snapshot - verify action applied
## Async Content
- click action that triggers async load
- wait_for({text: "Loading..."}) - optional
- wait_for({text: "Expected content"})
- take_snapshot to verify
## Screenshots vs Snapshots
- **take_snapshot**: Text-based, faster, good for finding elements
- **take_screenshot**: Visual, good for layout verification, evidence
## Error Handling
- Dialog appears? Use handle_dialog({action: "accept"})
- Element not found? take_snapshot to see current state
- Timeout? Increase timeout or check if content actually loads
Acceptance Criteria
- Create
test/references/browser-testing-patterns.md - Include patterns for: forms, modals, grids, multi-select, async
- Add troubleshooting section
- Link from
/testskill
Related
Related to #15 (MCP documentation) but focused on usage patterns rather than installation/dependencies.
Priority
Medium - improves browser testing efficiency
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Activity
admarble commentedon Jan 9, 2026
Planning Review - Issue #39
Acceptance Criteria with Verification
test/references/browser-testing-patterns.md/testskillImplementation Plan
Phase 1: Setup
test/references/directorybrowser-testing-patterns.mdwith headerPhase 2: Core Patterns
3. Form Testing pattern (snapshot → fill → click → verify)
4. Modal Testing pattern (open → verify → interact → close)
5. Grid/Table Testing pattern (AG Grid cell editing)
6. Multi-Select Testing pattern (checkboxes, bulk actions)
7. Async Content pattern (wait_for usage)
Phase 3: Reference Docs
8. Screenshots vs Snapshots comparison
9. Troubleshooting section (element not found, timeouts, dialogs)
Phase 4: Integration
10. Update
.claude/skills/test/SKILL.mdwith reference linkAssumptions
test/references/is the correct location (per issue spec)Recommended Workflow
Phases:
exec → qaReasoning: Documentation-only task with clear AC. No code logic to test.
Plan generated by /spec
admarble commentedon Jan 9, 2026
Planning Review - Issue #39 (Enhanced)
Acceptance Criteria with Verification
browser-testing-patterns.mdls .claude/skills/test/references/browser-testing-patterns.md/testskillImplementation Plan
Phase 1: Directory Setup
.claude/skills/test/references/directoryPhase 2: Core Document Creation
2. Create
browser-testing-patterns.mdwith header3. Form Testing pattern (snapshot → fill → submit → verify)
4. Modal Testing pattern (open → verify → interact → close)
5. Grid/Table Testing pattern (AG Grid cell editing)
6. Multi-Select Testing pattern (checkboxes, bulk actions)
7. Async Content pattern (wait_for usage)
Phase 3: Reference Documentation
8. Screenshots vs Snapshots comparison
9. Troubleshooting section
Phase 4: Integration
10. Update
.claude/skills/test/SKILL.mdwith reference linkClarification
File location: Issue specifies
test/references/but existing skill references use.claude/skills/<skill>/references/.Recommendation: Use
.claude/skills/test/references/browser-testing-patterns.mdto match the established pattern (qa, spec, security-review skills all use this structure).Assumptions to Validate
.claude/skills/test/references/(per existing pattern)Recommended Workflow
Phases:
exec → qaReasoning: Documentation-only task with clear AC. No code logic to test.
Conflict Risk
In-flight work analyzed: Issue #38 modifies different files (exec skill, framework-gotchas). No conflict with #39.
Plan generated by /spec - Ready for implementation
feat(#39): Add MCP browser testing patterns reference
admarble commentedon Jan 9, 2026
Implementation Progress Update
AC Coverage
browser-testing-patterns.md/testskillFiles Changed
.claude/skills/test/references/browser-testing-patterns.md(new - 422 lines).claude/skills/test/SKILL.md(added reference link)Document Structure
The browser testing patterns reference includes:
Checks Run
npm test- ✅ 156 tests passednpm run build- ✅ PassedPR Status
Created: #44
Implementation by /exec - Ready for /qa
admarble commentedon Jan 10, 2026
Spec Review - Issue #39 (Final)
Acceptance Criteria with Verification
browser-testing-patterns.mdls .claude/skills/test/references/browser-testing-patterns.md/testskillImplementation Summary
Files Created/Modified:
.claude/skills/test/references/browser-testing-patterns.md(423 lines).claude/skills/test/SKILL.md(reference link added)Document Structure:
PR Status
PR #44: #44
Recommended Next Steps
/qa 39for code review against ACConflict Analysis
No conflicts with other in-flight work (issues #3, #6, #11, #38, #41, #42).
Spec verified by /spec
feat(#39): Add MCP browser testing patterns reference (#44)
fix(#762): anchor blocker markers to line start; document --strict-pr…
feat(#762): lightweight content pre-flight for --chain (#764)
feat(#39): Add MCP browser testing patterns reference
feat(#762): lightweight content pre-flight for --chain
fix(#762): anchor blocker markers to line start; document --strict-pr…