Controlling App Behavior in Cypress with Spies, Stubs, and Clocks — LearnFlat
⏱ 2 h 54 min 📚 29 aulas 🎧 Versão em áudio

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.

  • 💬 Instrutor de IA
    Pergunte sobre qualquer aula e receba uma resposta clara na hora, quando quiser.
  • 🕐 Comece quando quiser
    Sem horários nem prazos: aprenda no seu ritmo, quando quiser.
  • 🌐 Em português
    Aulas, tarefas e certificado: tudo totalmente no seu idioma.

Sobre este curso

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.

O que você vai receber

  • 📜 Certificado de conclusão
    Adicione ao seu perfil do LinkedIn
  • 💬 Tutor AI pessoal
    Travou em uma aula? Pergunte ao seu tutor integrado qualquer coisa, a qualquer hora.
  • 🎧 Versão em áudio incluída
    Estude em qualquer lugar, sem tela
  • ♾️ Acesso vitalício
    Volte quando quiser, sem expirar
  • 📱 Celular ou computador
    Funciona em qualquer dispositivo
  • 💸 Reembolso em 14 dias
    Sem perguntas
  • Curto e focado
    2 h 54 min de conteúdo prático

Avaliações

Ainda não há avaliações — seja o primeiro a compartilhar sua experiência.

Escrever uma avaliação

Pediremos para fazer login após enviar — o rascunho fica salvo.

Outros também fizeram

Perguntas frequentes

O que preciso para fazer este curso? +

Só um celular ou computador com internet. Sem instalações nem hardware especial.

Como faço para pagar? +

Com cartão via Stripe. Não guardamos dados do cartão — o Stripe processa com segurança.

Posso pedir reembolso? +

Sim — reembolso integral em 14 dias, sem perguntas.

Por quanto tempo terei acesso? +

Para sempre. Uma vez comprado, o curso é seu para revisar quando quiser.

Vou receber um certificado? +

Sim. Ao concluir, você recebe um certificado que pode adicionar ao seu perfil do LinkedIn.

Feito para profissionais em
Tecnologia Design Finanças Marketing Saúde Educação Hotelaria Indústria