Our career paths help you become job ready faster
AI Engineer - Learn how to integrate AI into software applications
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a complete end-to-end automation project for a real-world Todo application using Playwright with JavaScript in this hands-on tutorial. Master the fundamentals of test automation by working through a practical mini-project that covers essential Playwright concepts and techniques. Set up your development environment by creating a new project folder, checking Node.js installation, initializing an npm project, and installing Playwright with browser dependencies. Create automated test scripts using both manual coding and Playwright's code generation feature to interact with the TodoMVC demo application. Implement core todo functionality testing including adding multiple tasks, marking items as complete, and deleting entries while incorporating proper assertions for validation. Execute tests in various modes including headless, headed, slow motion, and interactive UI modes to understand different testing approaches. Generate comprehensive HTML reports with screenshots and video capture on test failures, and explore trace functionality for detailed debugging. Configure your project to automatically capture visual evidence when tests fail and learn to use tags for selective test execution. Practice running tests in debug mode and utilizing Playwright's interactive features for enhanced development workflow. Gain practical experience with locators, assertions, user interactions, and reporting mechanisms that form the foundation of robust test automation. Access the TodoMVC React demo application and follow step-by-step instructions to build a working Playwright test suite that produces professional HTML reports with failure documentation.
Syllabus
00:00 - Intro
00:24 - Project Overview
03:31 - Project Goals
04:38 - Create new project folder
06:41 - Check node is installed
08:42 - Initialize node project
09:26 - Install Playwright
13:20 - Create test script Record
19:12 - Run tests
21:28 - Run with TAGS
23:26 - Run in Slow Motion
25:01 - Run in Interactive mode ui
28:55 - HTML Reports
31:20 - Screenshots and Video on Failure
35:06 - Show trace
36:51 - Tips
39:38 - Outro
Taught by
Automation Step by Step