Webwright icon indicating copy to clipboard operation
Webwright copied to clipboard

fix: use firefox in doctor screenshot check

Open nuthalapativarun opened this issue 5 months ago • 0 comments

Summary

  • doctor screenshot check now launches Firefox instead of Chromium
  • Failure hint updated to reference playwright install firefox
  • check_chromium renamed to check_firefox with updated messages throughout
  • tests/unit/test_doctor.py updated to import and call check_firefox

Why

SKILL.md and local_browser.yaml both specify Firefox as the required browser, but check_screenshot launched Chromium. Users who followed the quickstart and only installed Firefox got a false FAIL on the screenshot check.

Changes

  • src/webwright/run/doctor.py line ~54: p.chromium.launch() → p.firefox.launch(); updated failure hint string; renamed check_chromium → check_firefox; updated CHECKS registry label
  • tests/unit/test_doctor.py: updated import and test function name from check_chromium to check_firefox

Testing

pytest tests/unit/test_doctor.py -v
tests/unit/test_doctor.py::test_check_python PASSED
tests/unit/test_doctor.py::test_check_playwright PASSED
tests/unit/test_doctor.py::test_check_firefox PASSED
tests/unit/test_doctor.py::test_check_screenshot PASSED
tests/unit/test_doctor.py::test_check_openai_key_exists PASSED
tests/unit/test_doctor.py::test_check_openai_key_missing PASSED
tests/unit/test_doctor.py::test_plugin_manifests_exist PASSED
tests/unit/test_doctor.py::test_plugin_manifests_missing PASSED
tests/unit/test_doctor.py::test_screenshot_file_cleanup PASSED
9 passed in 0.11s

nuthalapativarun avatar Jun 05 '26 05:06 nuthalapativarun