Webwright
Webwright copied to clipboard
fix: use firefox in doctor screenshot check
Summary
doctorscreenshot check now launches Firefox instead of Chromium- Failure hint updated to reference
playwright install firefox check_chromiumrenamed tocheck_firefoxwith updated messages throughouttests/unit/test_doctor.pyupdated to import and callcheck_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.pyline ~54:p.chromium.launch()→p.firefox.launch(); updated failure hint string; renamedcheck_chromium→check_firefox; updated CHECKS registry labeltests/unit/test_doctor.py: updated import and test function name fromcheck_chromiumtocheck_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