Skip to content

fix: use firefox in doctor screenshot check#45

Open
nuthalapativarun wants to merge 3 commits into
microsoft:mainfrom
nuthalapativarun:fix/doctor-firefox-screenshot
Open

fix: use firefox in doctor screenshot check#45
nuthalapativarun wants to merge 3 commits into
microsoft:mainfrom
nuthalapativarun:fix/doctor-firefox-screenshot

Conversation

@nuthalapativarun

Copy link
Copy Markdown

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_chromiumcheck_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 and others added 3 commits June 4, 2026 21:01
New users have no way to discover which config files are available
without browsing the source tree. Add `python -m webwright.run.cli
list-configs` that prints all .yaml filenames from the built-in config
directory. Update the README flags table to document the new command.
…tion

Registering a second @app.command() forced Typer to require an explicit
subcommand, breaking the existing `python -m webwright.run.cli -t "..."`
invocation form. Switch `main` to @app.callback(invoke_without_command=True)
so the default invocation works without a subcommand while list-configs
remains available as an explicit subcommand.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SKILL.md and local_browser.yaml 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.

- p.chromium.launch() -> p.firefox.launch()
- Renamed check_chromium to check_firefox; updated messages/hints to reference Firefox
- Updated CHECKS registry entry label from Chromium to Firefox
- Updated test_doctor.py to import and call check_firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant