What problem does it solve?
Testing ActivityPub plugin features, especially federation and E2E scenarios, can be complex and require specific testing patterns and environment setups. This Skill provides guidance for writing and running PHPUnit and Playwright tests.
Core Features & Use Cases
- PHPUnit Test Patterns: Structure and implement unit tests for PHP-based ActivityPub components, including transformers and handlers.
- Playwright E2E Testing: Write end-to-end tests for web features, such as settings page loading and WebFinger discovery.
- Test Data Management: Utilize test data factories for creating users, posts, and comments to ensure realistic test scenarios.
- Use Case: When developing a new federation feature for the WordPress ActivityPub plugin, use this skill to guide you in writing both PHPUnit tests for the backend logic and Playwright E2E tests to verify the end-to-end user experience and federation capabilities.
Quick Start
Write a Playwright E2E test to verify that the ActivityPub settings page loads correctly and displays the main heading.