Skip to content

v4.0.0 - Auto-Detection & Smart Test Management

Choose a tag to compare

@lackeyjb lackeyjb released this 19 Oct 22:56
· 13 commits to main since this release

πŸŽ‰ Major Release: Auto-Detection & Smart Test Management

Version 4.0.0 brings significant workflow improvements that eliminate common friction points when testing with Playwright.

✨ What's New

πŸ” Auto-Detect Dev Servers

  • Automatically scans common ports (3000, 3001, 3002, 5173, 8080, 8000, 4200, 5000, 9000, 1234)
  • Smart workflow:
    • 1 server found β†’ Uses automatically
    • Multiple servers β†’ Asks which one to test
    • No servers β†’ Asks for URL or offers to help start one
  • No more hardcoded URLs or manual edits!

🧹 Clean Test Management

  • All test scripts now written to /tmp/playwright-test-*.js
  • Automatic cleanup by OS (no project clutter)
  • No more test files polluting your skill directory

πŸ”— URL Parameterization

  • Every example includes TARGET_URL constant at the top
  • Easy to modify if auto-detection picks wrong server
  • Consistent pattern across all code examples

πŸ“š Inline Execution Support

  • Quick one-off tasks can be executed inline
  • No file creation for simple screenshots or checks
  • Documentation on when to use inline vs files

πŸ”§ Technical Changes

New Functions:

  • detectDevServers() in lib/helpers.js - Scans for running servers

Documentation:

  • Complete rewrite of SKILL.md with critical workflow section
  • Updated all examples to use /tmp and parameterized URLs
  • New execution pattern showing server detection flow
  • Enhanced tips section with best practices

πŸ“Š Impact

Before v4.0.0 (from real user transcript):

  • ❌ Hardcoded localhost:3000
  • ❌ Server was on port 3001 β†’ required 3 manual edits
  • ❌ No server detection
  • ❌ Test files cluttered skill directory
  • ❌ Hook errors from writing to wrong location

After v4.0.0:

  • βœ… Auto-detects port 3001
  • βœ… Zero manual edits needed
  • βœ… Proactive server detection
  • βœ… All files in /tmp (clean)
  • βœ… No hook errors

πŸš€ Upgrade Notes

This is a major version bump due to workflow changes:

Breaking Changes:

  • Skill now expects to run server detection before localhost testing
  • Test files are written to /tmp instead of skill directory

Migration:

  • No action needed - skill handles everything automatically
  • Old test files in skill directory can be safely deleted

πŸ“– Documentation

Updated examples show the new workflow:

  1. Auto-detect servers
  2. Write test to /tmp with parameterized URL
  3. Execute and enjoy clean results

See SKILL.md for complete details and examples.


Full Changelog: v3.2.0...v4.0.0