Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
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
- Running your first “smoke” E2E test in both GUI and headless modes
Core Concepts
- Cypress fundamentals, command queue, and automatic retry mechanisms
- Using 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() to handle edge cases
- Ensuring stable integration between frontend and backend
Custom Cypress Commands
- Organising repetitive actions (such as login and navigation) into custom commands
- Writing cleaner, more maintainable code through reusable calls (e.g., cy.login())
Schedule: Theory, demonstrations, and hands-on exercises Prerequisites: Basic JavaScript knowledge, VSCode, and Git
Day 2 – Advanced Practices & CI/CD
Building Complex Tests
- Automating complete user flows
- Managing state with 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 parameterised 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
- Integration with GitHub Actions
- Setting up the Node.js and Cypress environment for headless execution
- Automatic test runs triggered by push or pull request
- Secure management of secrets and credentials
Summary and Conclusion
Requirements
- A basic understanding of software testing
Audience
- Software testers
14 Hours
Testimonials (3)
hands on exercises, easier to retain information
ashley bolen - Insurance Corporation of British Columbia
Course - Test Automation with Selenium
Very interesting subject and very knowledgeable trainer
Pedro Miguel Costa - Natixis
Course - Automation Testing with Cypress
Key topics can be discussed and agreed upon with the trainer in advance. Relaxed and pleasant atmosphere during the seminar days.