Skillpedia
الاختبار48k · #4503

e2e-testing-patterns

ما الذي تفعله

تساعد هذه المهارة في إنشاء اختبارات تلقائية للتحقق من أن الموقع أو التطبيق يعمل بشكل صحيح. تضمن ألا تنكسر الأمور عندما تُجري تغييرات، فتطلق الإصدارات الجديدة بثقة أكبر.

متى تستخدمها

  • ✓عندما تنشئ اختبارات تلقائية للتحقق من وظائف الموقع.
  • ✓عندما تفشل اختبارات كان يجب أن تنجح دون سبب واضح.
  • ✓لضمان أن أهم أجزاء الموقع تعمل دائمًا.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/e2e-testing-patterns/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“كيف أختبر أن تسجيل الدخول يفشل بشكل صحيح عندما أستخدم كلمة مرور خاطئة؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تعمل المهارة بتحديد الخطوات التي يتبعها المستخدم، مثل النقر على الأزرار وملء النماذج، ثم تتحقق من أن النتيجة كما هو متوقع. ويتم ذلك تلقائيًا لاختبار سيناريوهات كثيرة بسرعة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

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.
الأسئلة الشائعة

ما هي «الاختبارات الشاملة» (end-to-end tests)؟

هي اختبارات تحاكي تجربة المستخدم الكاملة مع الموقع أو التطبيق، من بداية المهمة إلى نهايتها.

لماذا تُعد الاختبارات الموثوقة مهمة؟

الاختبارات الموثوقة تضمن ألا تكسر التغييرات الجديدة الوظائف الحالية، مما يمنحك الثقة لإطلاق الإصدارات بسرعة أكبر.

ما هي الاختبارات «المتقلبة» (flaky)؟

هي اختبارات تنجح أحيانًا وتفشل أحيانًا دون أي تغيير في الكود، مما يجعل الوثوق بها صعبًا.

التفاصيل

الوصف الأصلي من المؤلف

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

الشعبية

نجوم GitHub
48k
الترتيب
#4503
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة