
Install NodeJS and Visual Studio Code to set up your development environment for Cypress automation, and verify npm to manage packages.
Set up a Cypress project from scratch by initializing npm, installing Cypress as a dev dependency, and opening the Cypress test runner to create end-to-end tests.
Master css selectors to identify and interact with page elements in Cypress tests, using class, id, and attribute selectors. Learn the general formula to locate elements in the dom.
Write and run your first Cypress test by creating a test file, organizing it with describe and it blocks, and visiting a website to assert the page title.
Learn to extract text from a web element in Cypress by locating the logo via its class name, storing it, and asserting the logo text matches the expected value.
Explore Cypress assertions, including implicit assertions and built-in checks. Learn how should and expect perform the same validation, with customizable timeouts and retries for element presence.
Practice automating a login and cart workflow with Cypress: navigate to the site, log in, verify the products page, add to cart, confirm button state changes, and confirm cart contents.
This practical exercise builds end-to-end Cypress test: login, add two items to cart, verify cart shows 2, reset state, sort low to high, and reload to recheck cart icon disappears.
Refactor tests by using a beforeEach login hook to run all tests, remove repeated login steps, and leverage Cypress features like cy.visit, cy.get, data-test selectors, and adding to cart.
Build a real-world automation framework by organizing test data, initializing an npm project, installing Cypress, and structuring folders for tests, page objects, selectors, and commands.
Implement the page object model in the Cypress framework by building login and product page objects with selectors and actions: type username, type password, click login, and add to cart.
Test the login page in Cypress using page objects for the login and products pages. Validate correct login redirects to the products page and incorrect login shows an error.
Create and use a custom Cypress command to log in via a login page object. Make it a global method across tests and configure a base URL in Cypress config.
Learn to add and configure custom scripts in Cypress by saving long commands in package.json, running tests with Chrome, and generating merged JSON and hashed email reports.
Create a Cypress framework by initializing npm and setting up package.json, dependencies, and defaults. Define login and product page actions in page objects and configure a reporting script.
Install Visual Studio Code and Node.js for your operating system, then create a test.js file in a folder and run it from the terminal or with the Code Runner extension.
Master JavaScript operators and expressions for data manipulation and decisions. Explore arithmetic, comparison, logical, and assignment operators, two equals vs three equals, remainder, and operator precedence.
Master control flow by using if, else if, switch, and the ternary operator to write dynamic JavaScript programs. Explore examples like voting eligibility and age-based pricing.
Learn control flow with loops: for, while, and do while loops, using break and continue to manage iterations, print to the console, and sum the first five numbers.
Master strings in JavaScript by using single quotes, double quotes, or backticks; learn concatenation with plus and template literals, embed variables, and apply methods like toUpperCase, toLowerCase, trim, and length.
Learn how JavaScript functions create reusable code blocks, use parameters and return values, and explore the function keyword, function expressions, and arrow functions with practical examples.
Learn how to handle errors in JavaScript using try, catch, and finally. Throw custom errors, and implement practical error handling to keep your applications robust even when problems occur.
This course will guide you through a complete mastery of the Cypress framework, teaching you how to leverage all its essential features. Cypress is a modern, JavaScript-based tool that includes everything you need right from the start: a Test Runner, assertion libraries, reporters, and more. This all-in-one setup makes Cypress extremely fast and efficient! Even if you’re new to JavaScript, there’s no need to worry. Writing automated tests in Cypress feels more like following a sequence of straightforward commands to interact with the browser, rather than traditional programming. It’s primarily a scripting approach within the structure Cypress provides.
We'll begin by setting up the test environment and getting familiar with Cypress's core commands and actions. You’ll also learn to identify and work with selectors for web elements in the DOM.
In addition to best practices in automated testing, we’ll delve into advanced topics, such as building a testing framework using the Page Object Model—a common approach in real-world projects. You’ll discover how to add screenshots and video recordings to your tests, as well as how to configure reports for your test suites.
By the end of this course, you’ll have the skills, knowledge, and confidence to become proficient in Cypress!