You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed the setupPlaywrightDirectories is not a function error in mac init command
1. Exported the missing function - Added setupPlaywrightDirectories to module.exports in /cli/commands/mcp.js:474
2. Added error handling - Wrapped the function call in try-catch in /cli/commands/init.js:796-802 to handle any potential issues gracefully
3. Enhanced test installation - Added comprehensive test setup in /cli/commands/init.js:
- Created copyVisualTestTemplates() function (lines 161-204) to copy visual test templates and utilities
- Added automatic Playwright config generation (lines 837-879)
- Copies visual regression tests when web testing is enabled with visual testing on CI
4. Fixed visual setup script - Changed the visual:setup script from calling non-existent function to npx playwright install chromium in
/cli/commands/mcp.js:399
The mac init command will now properly:
- Set up Playwright visual testing directories when visual dev is enabled
- Copy test templates including visual regression tests
- Create a proper playwright.config.js
- Install helper utilities for visual and CLI testing
- Handle errors gracefully if setup fails
0 commit comments