Controlling App Behavior in Cypress with Spies, Stubs, and Clocks
Learn to isolate your tests, mock network responses, and manipulate time in Cypress to build reliable and deterministic end-to-end test suites.
-
💬
مدرب ذكاء اصطناعي
اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت. -
🕐
ابدأ في أي وقت
بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك. -
🌐
بالعربية
الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
Writing reliable end-to-end tests often requires controlling external dependencies, network latency, and time-sensitive application behavior. This text-based course guides you through the foundational concepts of test isolation in Cypress, teaching you how to prevent flaky tests by mastering mock data and timing control.
You will progress from understanding core testing terminology to actively manipulating application behavior. By reading clear explanations and studying real-world code snippets, you will gain the skills to mock API responses, spy on function calls, and control JavaScript clocks to test time-dependent features with absolute confidence.
What you'll learn:
- Understand the core differences between spies, stubs, and mocks in test automation
- Implement stubs to force specific code paths and control application behavior
- Track function execution and verify arguments using Cypress spies
- Manipulate application time and test delayed actions using Cypress clock commands
- Combine stubs with network interception patterns for robust integration testing
- Practice writing clean, deterministic test scripts that avoid common timing pitfalls
The course begins with essential definitions of test doubles, ensuring you grasp the fundamentals before diving into implementation. You will then progress through practical, written scenarios that demonstrate how to intercept network traffic, mock complex application states, and control time-sensitive UI components.
This course is designed for QA engineers, frontend developers, and beginners to test automation who want to write more stable Cypress tests. No advanced testing experience is required, though a basic familiarity with JavaScript and Cypress fundamentals will help you get the most out of the material.
Start writing deterministic, flake-free Cypress tests today.
ما الذي ستحصل عليه
-
📜
شهادة إتمام
أضفها إلى ملفك على LinkedIn -
💬
مدرّس AI شخصي
عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
2 ساعة 54 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
المتعلمون أخذوا أيضًا
💼 جاهز لسوق العمل
🎓 بشهادة
اختبارات آلية للغة بايثون باستخدام Pytest
شهادة
تطبيق عملي
SR 190
→
🏆 الأكثر شعبية
🎓 بشهادة
أتمتة الاختبار لتطبيقات Angular باستخدام Protractor و TypeScript و Cucumber
شهادة
تطبيق عملي
SR 190
→
💼 جاهز لسوق العمل
🎓 بشهادة
الاختبار الآلي في C# .NET: Selenium، وxUnit، وDocker
شهادة
تطبيق عملي
SR 190
→
⚡ الأفضل للبداية
🎓 بشهادة
أساسيات TDD في Ruby: بناء تطبيقات نظيفة باستخدام RSpec
شهادة
تطبيق عملي
SR 190
→
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع
×2
اشحن مرة واحدة وادفع النصف
أضف SR 380 واحصل على 200 رصيد، بحيث تكلف كل دورة حوالي SR 47.50. لا تنتهي صلاحية الأرصدة أبداً.
SR 380
200 رصيد
SR 47.50 / دورة
أفضل قيمة
SR 950
550 رصيد
SR 43.18 / دورة
SR 1,900
1200 رصيد
SR 39.58 / دورة
الرصيد يصلح لأي دورة ولا ينتهي.