e2e-testing-patterns

掌握Playwright和Cypress端到端测试技术,构建可靠的测试套件,精准捕捉漏洞、提升部署信心并实现快速迭代。适用于实施E2E测试、调试不稳定测试用例或建立测试标准等场景。

查看详情
name:e2e-testing-patternsdescription:Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.

E2E Testing Patterns

Build reliable, fast, and maintainable end-to-end test suites that provide confidence to ship code quickly and catch regressions before users do.

Use this skill when

  • Implementing end-to-end test automation

  • Debugging flaky or unreliable tests

  • Testing critical user workflows

  • Setting up CI/CD test pipelines

  • Testing across multiple browsers

  • Validating accessibility requirements

  • Testing responsive designs

  • Establishing E2E testing standards
  • Do not use this skill when

  • You only need unit or integration tests

  • The environment cannot support stable UI automation

  • You cannot provision safe test accounts or data
  • Instructions

  • Identify critical user journeys and success criteria.

  • Build stable selectors and test data strategies.

  • Implement tests with retries, tracing, and isolation.

  • Run in CI with parallelization and artifact capture.
  • Safety

  • Avoid running destructive tests against production.

  • Use dedicated test data and scrub sensitive output.
  • Resources

  • resources/implementation-playbook.md for detailed E2E patterns and templates.