Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"permissions": {
"allow": [
"mcp__playwright__browser_navigate",
"mcp__playwright__browser_navigate_back",
"mcp__playwright__browser_snapshot",
"mcp__playwright__browser_take_screenshot",
"mcp__playwright__browser_console_messages",
"mcp__playwright__browser_network_requests",
"mcp__playwright__browser_tabs",
"mcp__playwright__browser_click",
"mcp__playwright__browser_type",
"mcp__playwright__browser_fill_form",
"mcp__playwright__browser_select_option",
"mcp__playwright__browser_hover",
"mcp__playwright__browser_press_key",
"mcp__playwright__browser_wait_for",
"mcp__playwright__browser_close",
"mcp__playwright__browser_evaluate",
"mcp__playwright__browser_handle_dialog"
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ modules/*/lib/

# Claude local settings
.claude/settings.local.json
.playwright/

# cspell cache
.cspellcache
8 changes: 8 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest", "--isolated"]
}
}
}
32 changes: 32 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,38 @@ npm run android
npm run web
```

## Browser Testing with Playwright MCP

Claude can interact with the running App dev server using Playwright MCP for testing and debugging:

### Setup
1. Verify dev server is running
2. Dev server runs at `https://dev.new.expensify.com:8082/`
3. Ask Claude to open the URL in Playwright browser
2. **IF MCP NOT AVAILABLE**: Guide user to install it before proceeding

### MCP Installation
If Playwright MCP connection fails, guide user to install:
```bash
claude mcp add playwright npx '@playwright/mcp@latest'
```

### Testing Workflow (MCP Required)
1. Verify App dev server is running: `pgrep webpack`
2. Use Playwright MCP tools to navigate to `https://dev.new.expensify.com:8082/`
3. Use MCP tools to interact with the browser (click, type, screenshot, etc.)

### Dev Server Requirements
- **Location**: Runs on HOST machine (not in VM)
- **URL**: `https://dev.new.expensify.com:8082/`
- **Start command**: `npm run web`
- **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`)
- **Magic code**: Always `000000` for dev environment
- **Onboarding**: Always skip optional steps

## Architecture Decisions

### React Native New Architecture
Expand Down
3 changes: 2 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,8 @@
"DYNAMICEXTERNAL",
"RNCORE",
"Wooo",
"Splittable"
"Splittable",
"pgrep"
],
"ignorePaths": [
"src/languages/de.ts",
Expand Down
Loading