From the course: Structured Vibe Coding with AI Coding Agents

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Trust but verify: Testing, PRs, and debugging

Trust but verify: Testing, PRs, and debugging

From the course: Structured Vibe Coding with AI Coding Agents

Trust but verify: Testing, PRs, and debugging

- [Instructor] In the last video we wrote some basic unit tests for our email validation system using Claude Code. In this session, we are going to go one step further. We will set up an end-to-end test for our landing page and the tool that we'll be using is called Playwright. It is a powerful browser automation library created and maintained by Microsoft. It is a great tool for testing the full user experience of a web app including usability, performance and accessibility. So that's get started. First, that's look at the Playwright MCP server. As a quick refresh, MCP stands for model contacts protocol and this MCP server provides tools for our coding agent and the tool it provides is called Playwright. So to install this to Claude Code that's scrolled down and find Claude Code. Install in Claude Code, it says use the Claude Code CLI to add the Playwright MCP server. So that's copy this command and that's go back to VS Code. Right here, we can then first exit Claude Code by doing…

Contents