Skip to content

Add testing guidelines and fix .claude gitignore#215

Merged
KevinBatdorf merged 3 commits intomainfrom
add/testing-guidelines
Apr 12, 2026
Merged

Add testing guidelines and fix .claude gitignore#215
KevinBatdorf merged 3 commits intomainfrom
add/testing-guidelines

Conversation

@KevinBatdorf
Copy link
Copy Markdown
Owner

Summary

  • Add .claude/rules/testing.md with Playwright + WP Playground testing guidelines
    • Path-scoped to tests/** — auto-loads only when working on test files
    • Covers editor canvas vs page, WASM wait patterns, common pitfalls
    • Travels with the repo — anyone who clones gets the guidelines
  • Fix .gitignore to selectively track .claude/rules/ and settings.json while ignoring user-specific files (plans, todos, settings.local.json)

🤖 Generated with Claude Code

- Add .claude/rules/testing.md with Playwright + WP Playground
  guidelines (path-scoped to tests/). Auto-loads when working on tests.
- Update .gitignore to selectively track .claude/rules/ and
  settings.json while ignoring user-specific files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@KevinBatdorf KevinBatdorf force-pushed the add/testing-guidelines branch from dc85a83 to f56da59 Compare April 12, 2026 16:11
KevinBatdorf and others added 2 commits April 12, 2026 23:16
Each spec runs in its own GitHub Actions runner with a fresh Playground.
Specs do NOT share state. Tests within the same spec DO share state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Move shared blueprint.json up to tests/ (default and at-rules were
  identical). manual-override keeps its own.
- Update playwright.config.ts to walk up directories to find the
  closest blueprint.json, not just same dir or parent.
- Rewrite at-rules test to check front-end rendered HTML instead of
  editor-side WASM state. Bypasses WASM timing issues on nightly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@KevinBatdorf KevinBatdorf merged commit ffd53a5 into main Apr 12, 2026
3 checks passed
@KevinBatdorf KevinBatdorf deleted the add/testing-guidelines branch April 12, 2026 16:31
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.

1 participant