[NO QA] Teach Claude to use Playwright to build App#79166
Conversation
|
Really cool stuff overall 👍 Do we have a readme somewhere targeted to humans on how to configure Claude? I was prompted for these permissions, and Claude didn't offer to add them to the my local nor global configs, so I manually added them to my Claude config. I imagine it could be tiring if you don't do that and have to allow it to click buttons every session. |
PR ready for review. |
|
@MonilBhavsar Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
CLAUDE.md
Outdated
| - **VM is only for**: Backend services (Auth, Bedrock, Integration-Server, Web-Expensify) | ||
|
|
||
| ### Dev Environment Sign-In Credentials | ||
| - **Email**: Any random Gmail address (e.g., `testuser12345@gmail.com`) |
There was a problem hiding this comment.
While testing again today I realized it used the same Chrome session as yesterday, so the user was already signed in. Claude then tried to sign out and sign in again.
I could see this as being both good and bad (good if you want to continue testing a feature you previously set up, bad if you want to test a flow from end to end), but was it intentional? Or should we tell it to randomized the email address each time?
If we don't want Playwright to reuse the previous session, it seems like we might have to add the --isolated flag to the MCP config.
There was a problem hiding this comment.
I added --isolated, agree it makes sense to start fresh.
I also improved the prompt to stop it from using the testuser12345@gmail.com example email.
CLAUDE.md
Outdated
| - **VM is only for**: Backend services (Auth, Bedrock, Integration-Server, Web-Expensify) | ||
|
|
||
| ### Dev Environment Sign-In Credentials | ||
| - **Email**: Generate a random Gmail address (e.g., `user<random-numbers>@gmail.com`) |
There was a problem hiding this comment.
While we're at it, we could also make the instructions say to use an alias email, like user+<random>@gmail.com, in case some external contributors try this. We typically ask them to always use alias emails because they don't get Guides assigned, and we can filter them out for some analytics queries.
There was a problem hiding this comment.
Makes sense, did that:
**Email**: Generate a random Gmail address (e.g., 'user+<random-numbers>@gmail.com')
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.3.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.0-8 🚀
|
Explanation of Change
Simply give Claude context on how to build App with Playwright MCP.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/586011
Tests
Is app runningTest sign in to appTesting the app

Checking if server is running

QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari