write-e2e-cases
Automate the creation and maintenance of Rsbuild E2E tests, ensuring feature coverage and regression prevention through Playwright.
Introduction
This skill acts as a specialized assistant for developers working on the Rsbuild project, facilitating the creation and maintenance of end-to-end (E2E) test cases. It is designed to ensure high-quality, consistent test coverage for new features, bug reproductions, and regression testing within the project's Playwright-based test suite. By following established project conventions, the agent helps developers maintain a stable build artifact and development experience.
-
Automatically reviews uncommitted git changes to define the scope and target behavior for new test cases.
-
Guides the implementation of tests according to the
e2e/README.mdconventions. -
Encourages the use of
@e2e/helpermethods (such asdevandbuild) to minimize code duplication and keep test suites concise. -
Structures test cases under
e2e/caseswith the requiredsrcdirectories and optionalrsbuild.config.tsconfigurations. -
Validates changes by instructing the user to execute
pnpm e2eto verify the test suite locally. -
Focuses on regression prevention by ensuring that bug fixes are coupled with corresponding E2E test cases.
-
Requires developers to include a
srcdirectory in every test case to ensure proper test execution. -
Enforces a strict separation of concerns: if tests require source-code changes, the agent is constrained from changing the source directly, requiring user confirmation first.
-
Provides a straightforward workflow for adding or updating test cases within the Rsbuild repository (https://github.com/web-infra-dev/rsbuild).
-
Ensures that assertions are focused and readable, avoiding redundant setup and cleanup logic.
Repository Stats
- Stars
- 3,288
- Forks
- 257
- Open Issues
- 19
- Language
- TypeScript
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 1, 2026, 07:43 AM