Get in Touch

Course Outline

Day 1 – Introduction & Basics

Introduction

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

Core Concepts

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

API (Contract) Testing

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

Custom Cypress Commands

  • Grouping repetitive actions (such as login and navigation) into custom commands.
  • Writing cleaner, maintainable code through reusable calls (e.g., cy.login()).

Schedule: Theory sessions + demonstrations + hands-on exercises Prerequisites: Basic JavaScript knowledge, VSCode, Git.

Day 2 – Advanced Practices & CI/CD

Building Complex Tests

  • Automating complete user flows.
  • Managing state using cy.intercept and cy.session.
  • Avoiding flaky tests to improve stability and execution speed.

Data-Driven Testing

  • Storing test data in JSON files (fixtures).
  • Running parameterized tests to execute the same logic with multiple inputs.

Cypress Plugins

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

CI/CD Integration with Cypress

  • Integrating with GitHub Actions.
  • Configuring the Node.js and Cypress environment for headless execution.
  • Triggering automatic test runs on code push or pull requests (PR).
  • Secure management of secrets.

Summary and conclusion

Requirements

  • Basic understanding of software testing principles.

Target Audience

  • Software testers.
 14 Hours

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories