e2e-testing-patterns
यह क्या करती है
यह टूल किसी वेबसाइट या ऐप्लिकेशन की जांच के लिए ऑटोमेटिक टेस्ट बनाने में मदद करता है। यह सुनिश्चित करता है कि आपके बदलाव करने पर चीज़ें टूटें नहीं, जिससे आप नए वर्शन ज़्यादा भरोसे के साथ रिलीज़ कर सकें।
कब इस्तेमाल करें
- ✓वेबसाइट की फ़ंक्शनैलिटी जांचने के लिए ऑटोमेटिक टेस्ट बनाते समय।
- ✓जब टेस्ट जो पास होने चाहिए, बिना किसी साफ़ वजह के फेल हो रहे हों।
- ✓वेबसाइट के सबसे ज़रूरी हिस्से हमेशा काम करते रहें, यह पक्का करने के लिए।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/e2e-testing-patterns/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं कैसे टेस्ट करूं कि गलत पासवर्ड डालने पर लॉगिन सही तरीके से फेल होता है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह उन स्टेप्स को परिभाषित करके काम करता है जो एक यूज़र उठाएगा, जैसे बटन क्लिक करना और फॉर्म भरना, और फिर जांचता है कि नतीजा अपेक्षित है या नहीं। यह कई स्थितियों को जल्दी टेस्ट करने के लिए अपने-आप होता है।
तकनीकी सामग्री (मूल 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
- Identify critical user journeys and success criteria.
- Build stable selectors and test data strategies.
- Implement isolated tests with observable assertions and tracing; diagnose retries rather than counting a retry as an ordinary pass.
- 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.mdfor 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 टेस्ट क्या होते हैं?
ये ऐसे टेस्ट हैं जो वेबसाइट या ऐप्लिकेशन पर यूज़र के पूरे अनुभव की नकल करते हैं, यानी किसी काम की शुरुआत से लेकर अंत तक।
भरोसेमंद टेस्ट क्यों ज़रूरी हैं?
भरोसेमंद टेस्ट यह सुनिश्चित करते हैं कि नए बदलाव पुरानी फ़ंक्शनैलिटी को न तोड़ें, जिससे नए वर्शन तेज़ी से रिलीज़ करने का भरोसा मिलता है।
'Flaky' टेस्ट क्या होते हैं?
ये ऐसे टेस्ट हैं जो कभी पास होते हैं और कभी फेल, बिना कोड में किसी बदलाव के। इसलिए इन पर भरोसा करना मुश्किल होता है।
जानकारी
लेखक का मूल विवरण
Build reliable, fast, and maintainable end-to-end test suites that provide confidence to ship code quickly and catch regressions before users do.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4503
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।