Get in Touch

Course Outline

Day 1 – Introduction & Basics

Introduction

  • The role of Cypress in the testing pyramid
  • Setting up the test automation environment (Node LTS, npm)
  • Creating a minimal Cypress project
  • Conducting the first "smoke" E2E test in both GUI and headless modes

Core Concepts

  • Cypress fundamentals, command queue, and automatic retry mechanisms
  • Utilizing hooks: before, beforeEach, afterEach, and after
  • Aliases and reusability (.as(), cy.get('@alias'))

API (Contract) Testing

  • Direct API testing with Cypress (cy.request())
  • API stubbing with cy.intercept() for edge cases
  • Ensuring stability in frontend-backend integration

Custom Cypress Commands

  • Organizing repetitive actions (such as login and navigation) into custom commands
  • Writing cleaner, maintainable code with reusable calls (cy.login())

Schedule: theory + demo + hands-on exercises Prerequisites: basic JS knowledge, VSCode, Git

Day 2 – Advanced Practices & CI/CD

Building Complex Tests

  • Automating complete user flows
  • State control using cy.intercept and cy.session
  • Preventing flaky tests and improving stability and speed

Data-Driven Testing

  • Storing test data in JSON files (fixtures)
  • Executing parameterized tests with the same logic across multiple inputs

Cypress Plugins

  • Reporting: mochawesome, allure-cypress, junit-reporter
  • Interactions: cypress-file-upload, cypress-real-events
  • Accessibility: cypress-axe, cypress-audit
  • Visual regression: cypress-image-snapshot
  • Maintainability: @testing-library/cypress, cypress-plugin-tab

CI/CD with Cypress

  • Integrating with GitHub Actions
  • Setting up the Node.js and Cypress environment for headless execution
  • Automating test runs on push/PR events
  • Secure handling of secrets

Summary and conclusion

Requirements

  • A foundational understanding of software testing

Audience

  • Software testers
 14 Hours

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories