Peekaboo/tests/unit/utils
Peter Steinberger dd680eb638 feat: Improve window title matching and error messages for URLs with ports
When users search for windows with URLs containing ports (e.g., 'http://example.com:8080'),
the system now provides much better debugging information when the window isn't found.

Key improvements:
- Enhanced window not found errors now list all available window titles
- Added specific guidance for URL-based searches (try without protocol)
- New CaptureError.windowTitleNotFound with detailed debugging info
- Comprehensive test coverage for colon parsing in app targets
- Better error messages help users understand why matching failed

Example improved error:
"Window with title containing 'http://example.com:8080' not found in Google Chrome.
Available windows: 'example.com:8080 - Google Chrome', 'New Tab - Google Chrome'.
Note: For URLs, try without the protocol (e.g., 'example.com:8080' instead of 'http://example.com:8080')."

This addresses the common issue where browsers display simplified URLs in window titles
without the protocol, making it easier for users to find the correct matching pattern.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 08:09:47 +01:00
..
ai-providers.test.ts Enhance Swift testing framework and test coverage 2025-06-07 23:57:26 +01:00
colon-parsing.test.ts feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00
format-preprocessing.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
image-summary.test.ts Enhance Swift testing framework and test coverage 2025-06-07 23:57:26 +01:00
peekaboo-cli.test.ts feat: Add fuzzy matching for application names 2025-06-08 05:22:58 +01:00
server-status.test.ts Implement missing best practices 2025-05-26 23:46:03 +02:00
zod-to-json-schema.test.ts Fix test expectation for unknown type fallback 2025-05-27 01:11:10 +02:00