Course Outline
Day 1 – Introduction & Basics
Introduction
- The role of Cypress in the testing pyramid
- Setting up the test automation environment (Node LTS, npm)
- Establishing a minimal Cypress project
- Creating the initial “smoke” E2E test in both GUI and headless modes
Core Concepts
- Cypress fundamentals, command queue, automatic retry mechanisms
- Implementing hooks: before, beforeEach, afterEach, after
- Aliases and reusability (.as(), cy.get('@alias'))
API (Contract) Testing
- Direct API testing with Cypress (cy.request())
- Stubbing APIs using cy.intercept() for edge cases
- Ensuring stability in frontend-backend integration
Custom Cypress Commands
- Consolidating repetitive actions (such as login and navigation) into custom commands
- Achieving cleaner, more maintainable code through 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 workflows
- Managing state with cy.intercept and cy.session
- Minimising flaky tests while enhancing stability and speed
Data-Driven Testing
- Storing test data within JSON files (fixtures)
- Executing parameterized tests that apply the same logic to multiple inputs
Cypress Plugins
- Reporting tools: mochawesome, allure-cypress, junit-reporter
- Interaction helpers: cypress-file-upload, cypress-real-events
- Accessibility checks: cypress-axe, cypress-audit
- Visual regression testing: cypress-image-snapshot
- Maintainability enhancements: @testing-library/cypress, cypress-plugin-tab
CI/CD with Cypress
- Integrating with GitHub Actions
- Configuring the Node.js and Cypress environment for headless execution
- Automating test runs upon push or pull request
- Secure management of secrets
Summary and conclusion
Requirements
- Fundamental knowledge of software testing
Target Audience
- Software testers
Testimonials (4)
hands on exercises, easier to retain information
ashley bolen - Insurance Corporation of British Columbia
Course - Test Automation with Selenium
The instructor's teaching style was very good.
Kubra
Course - Automation Testing using Selenium
Key topics can be discussed and agreed upon with the trainer in advance. Relaxed and pleasant atmosphere during the seminar days.
Lorenz - Continentale Lebensversicherung AG
Course - Advanced Selenium
I gained new knowledge and I'm pretty confident about it. Nothing unclear.