write-e2e-cases

Create Playwright end-to-end test files for Rsdoctor build analysis features.

1.1k|98|Updated Nov 29, 2023
One-click install
npx skills add https://github.com/web-infra-dev/rsdoctor --skill write-e2e-cases
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-e2e-cases
Source: https://github.com/web-infra-dev/rsdoctor/tree/main/.agents/skills/write-e2e-cases
Command: npx skills add https://github.com/web-infra-dev/rsdoctor --skill write-e2e-cases

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies and standardizes the process of writing and updating end-to-end tests for Rsdoctor's various integration scenarios, reducing manual effort and ensuring test coverage.

Core Features & Use Cases

  • Test Case Creation: Adds new Playwright test files under specified e2e/cases/ directories for different bundler backends like Rspack, webpack, Rsbuild, and Rspeedy.
  • Fixture Management: Guides on organizing source files, loaders, and configs within fixtures for consistent test setups.
  • Execution & Validation: Facilitates running tests via pnpm e2e and inspecting SDK store data to verify analysis results.

Quick Start

Use the write-e2e-cases skill to create a new test that verifies the behavior of a custom Rsdoctor plugin with your current fixture setup.

Frequently Asked Questions about write-e2e-cases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write e2e tests for Rsdoctor build analysis across different bundlers?

To write e2e tests for Rsdoctor, you create Playwright test files under the e2e/cases/ directory, organizing fixtures and configs for specific bundler backends like Rspack, webpack, Rsbuild, and Rspeedy.

What is the best way to structure fixtures for Rsdoctor e2e testing?

The best way to structure Rsdoctor e2e testing fixtures is to organize source files, loaders, and configurations consistently within fixture directories, ensuring reliable and standardized test setups across different bundling scenarios.

How do I run e2e tests and validate Rsdoctor SDK store data?

You run e2e tests using the pnpm e2e command, then inspect the Rsdoctor SDK store data to verify that the build analysis and visualization results match your expected test outcomes.

Can I use Playwright to automate testing for custom Rsdoctor plugins?

Yes, you can use Playwright to automate testing for custom Rsdoctor plugins by creating new test cases that verify plugin behavior against your current fixture setup and bundler configuration.

Does Rsdoctor e2e testing support both webpack and Rspack workflows?

Yes, Rsdoctor e2e testing supports both webpack and Rspack workflows, allowing you to create comprehensive test cases that cover build analysis and visualization features across multiple bundling scenarios.