End-to-End Testing for Spring Boot apps with Playwright in VS Code
Rory Preddy demonstrates how to connect Playwright MCP to GitHub Copilot in Visual Studio Code to run end-to-end browser tests against a Spring Boot app.
Overview
In this video, the presenter shows an end-to-end testing workflow where GitHub Copilot drives Playwright (via Playwright MCP) to test a Spring Boot application through a real browser.
What the demo does
- Connects Playwright MCP to GitHub Copilot in Visual Studio Code.
- Runs the existing Java tests.
- Starts the Spring Boot application.
- Enables Playwright’s browser tooling.
- Uses Copilot to verify a full workflow in the app:
- Add
- Complete
- Delete
- Reviews the browser test results.
Prerequisites and installs
- Microsoft Build of OpenJDK: https://learn.microsoft.com/en-us/java/openjdk/download
- Extension Pack for Java (VS Code): https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
- Spring Boot Extension Pack (VS Code): https://marketplace.visualstudio.com/items?itemName=vmware.vscode-boot-dev-pack
- GitHub Copilot for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
- Playwright MCP for Visual Studio Code: https://playwright.dev/mcp/clients/vscode
Sample repository
Video chapters
- 0:00 Introduction
- 0:34 Install Playwright MCP
- 1:27 Prepare and run the Spring Boot app
- 2:14 Test the app with Copilot and Playwright
- 3:27 Review the browser test results