Chuyển đến nội dung
Skillpedia
Kiểm thử48k · #4503

e2e-testing-patterns

Skill này làm gì

Công cụ này giúp tạo các bài kiểm thử tự động để kiểm tra xem website hoặc ứng dụng có hoạt động đúng không. Nó đảm bảo mọi thứ không bị hỏng khi bạn thay đổi, giúp bạn phát hành phiên bản mới với sự tự tin hơn.

Khi nào nên dùng

  • ✓Khi tạo các bài kiểm thử tự động để kiểm tra chức năng website.
  • ✓Khi các bài kiểm thử đáng ra phải đạt lại thất bại mà không rõ lý do.
  • ✓Để đảm bảo các phần quan trọng nhất của website luôn hoạt động.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/e2e-testing-patterns/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/e2e-testing-patterns/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để kiểm tra đăng nhập thất bại đúng cách khi tôi nhập sai mật khẩu?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ hoạt động bằng cách xác định các bước mà người dùng sẽ thực hiện, như nhấp nút và điền biểu mẫu, rồi kiểm tra xem kết quả có đúng như mong đợi không. Việc này được thực hiện tự động để kiểm tra nhiều tình huống nhanh chóng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. Identify critical user journeys and success criteria.
  2. Build stable selectors and test data strategies.
  3. Implement isolated tests with observable assertions and tracing; diagnose retries rather than counting a retry as an ordinary pass.
  4. 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.

Worked example

Input: invalid login sometimes appears successful because the test reads the error before rendering finishes. Use a dedicated fixture account and assert await expect(page.getByRole('alert')).toContainText('Invalid credentials'). Run the test without retries and confirm the dashboard remains inaccessible. Expected: the failure state is observed reliably; a delayed error cannot silently pass.

Inputs and prerequisites

An authorized test URL, isolated accounts/data, the installed browser runner and known success/failure states. The playbook uses project-specific routes and adapters; install only the dependencies your existing suite needs.

Limitations

  • A mocked backend or payment provider proves only the mocked boundary; retain separate real integration checks.
  • Automated accessibility scans miss interaction and assistive-technology problems.
  • Retries, larger timeouts and updated snapshots can hide regressions; preserve first-failure evidence.
  • Browser tooling cannot validate a locked or unavailable interactive environment. Report that gap and continue independent tests.
Câu hỏi thường gặp

Kiểm thử end-to-end là gì?

Đó là các bài kiểm thử mô phỏng trải nghiệm đầy đủ của người dùng khi dùng website hoặc ứng dụng, từ đầu đến cuối của một tác vụ.

Vì sao các bài kiểm thử đáng tin cậy lại quan trọng?

Kiểm thử đáng tin cậy đảm bảo các thay đổi mới không làm hỏng chức năng hiện có, giúp bạn tự tin phát hành phiên bản mới nhanh hơn.

Bài kiểm thử “flaky” là gì?

Đó là các bài kiểm thử lúc đạt lúc thất bại, ngay cả khi không có thay đổi mã, khiến chúng khó tin cậy.

Chi tiết

Mô tả gốc của tác giả

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

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4503
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự