Mhangami cites GitHub's 2025 total of about one billion commits and a COO estimate of 275 million commits per week in 2026. She asks whether the increase in code means greater developer productivity. A Stanford study of 120,000 developers, presented at AI Engineer the previous year, suggested that clean codebases amplify AI gains, while unchecked AI use can increase rework and code entropy.
Beyond Code Coverage: Functionality Testing with Playwright MCP
Speaker
Senior developer advocate Marlene Mhangami, working at Microsoft and GitHub in the Core AI group, explains how to test application behavior with Playwright and AI coding agents.
Mhangami describes red-green TDD: write a failing test for a feature, make it pass, then refactor for code quality. She notes that tests tied to implementation details can break when methods are renamed, even if functionality still works. Tests of outcomes, such as a final price, or stable contracts like an API, are more resilient to refactoring.
AI-generated unit tests can pass and show coverage without validating what the system actually does. Mhangami introduces Playwright, an open-source Microsoft framework for browser-based end-to-end tests that simulate user interactions. Its supported languages include Python, TypeScript, and C#, and tests can run with a visible browser or in headless mode.
Mhangami recommends asking AI agents to generate Playwright tests for each feature, then generate code to make those tests pass, leaving time for human review and refactoring. In her Tailspin Toys demo, Copilot helps develop search and category and price filters, with Playwright checking searches for Furby and Simon and testing the filters. She says Playwright agents include planner, generator, and healer instructions, and recommends saving test screenshots with pull requests, committing before asking an agent to fix tests, and writing one test per feature.
Takeaways
- Use feature requests as the trigger for behavioral tests, not just new methods.
- Test visible outcomes and stable contracts so refactors do not break tests unnecessarily.
- Have coding agents write Playwright tests before implementation, then review and refactor the generated code.
- Keep one test per feature and commit before asking an agent to make test fixes.
- For applications with substantial state management, consider Playwright agents or testing APIs directly.
Mentioned in this talk
Search inside this talk
What was claimed 10
- built
Microsoft built Playwright
“Playwright is an open-source testing framework built by Microsoft.”
YouTube Verified2 sources· Talk, GitHub· archived
- works atMarlene Mhangami works at
MicrosoftSenior Developer Advocate (Python & AI)“I'm a senior developer advocate at Microsoft and GitHub.”
0:15inBuilding Interactive UIs in VS Code with MCP AppsYouTube Verified3 sources· Talk, Web· archived
- role atMarlene Mhangami is senior developer advocate at
GitHub
“I'm a senior developer advocate at Microsoft and GitHub.”
0:15inBuilding Interactive UIs in VS Code with MCP AppsYouTube Verified2 sources· Talk
- metric
GitHub: About 1 billion commits were pushed to the platform in 2025.
“About a billion commits were pushed to the platform in 2025.”
YouTube Unverified1 source· Talk
- metric
GitHub: About 275 million commits per week, as reported by the COO; extrapolated to about 14 billion commits by year-end.
“we're seeing about 275 million commits to the platform every week.”
YouTube Unverified1 source· Talk
- feature
Playwright: Automates end-to-end browser testing by simulating user interactions.
“It automates end-to-end testing in the browser by simulating user interactions.”
YouTube Unverified1 source· Talk
- feature
Playwright: Supports Python, TypeScript, and C#.
“Playwright currently supports several languages: Python, TypeScript, and C#.”
YouTube Unverified1 source· Talk
- feature
Azure AI Search: Used for more complex searches in the demo feature request.
“Azure AI Search for more complex ones.”
YouTube Unverified1 source· Talk
- integrates with
Work IQ integrates with
Microsoft 365
“lets developers connect to the Microsoft 365 suite.”
YouTube Unverified1 source· Talk
- built
“Work IQ, a skill Microsoft developed.”
YouTube Unverified1 source· Talk













