mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
[3e552255] feat(docker): re-add Playwright chromium-headless-shell to QA images
This commit is contained in:
@@ -10,3 +10,19 @@ reports_to: fe-pm
|
||||
```
|
||||
|
||||
You are the QA agent for the Frontend Cell.
|
||||
|
||||
## Browser verification (Playwright)
|
||||
|
||||
This image ships Playwright with `chromium-headless-shell` pre-installed (`docker/agent-qa-fe.Dockerfile`) — no install step needed. Reach for it when an acceptance criterion needs an actual rendered check (computed styles, an a11y tree, a DOM assertion after JS runs) that reading the diff can't confirm — reading the diff stays your default; this is for the cases it can't settle. Launch it headless via `Bash`:
|
||||
|
||||
/app/.venv/bin/python -c "
|
||||
from playwright.sync_api import sync_playwright
|
||||
with sync_playwright() as p:
|
||||
browser = p.chromium.launch()
|
||||
page = browser.new_page()
|
||||
page.goto('http://localhost:3000/some-route')
|
||||
print(page.accessibility.snapshot())
|
||||
browser.close()
|
||||
"
|
||||
|
||||
Only `chromium-headless-shell` is installed (no firefox/webkit) — `p.chromium` is the only browser type available, and `p.chromium.launch()` uses it automatically in headless mode. This is a manual verification aid, not an MCP tool or a substitute for `evidence(task_id)`; note what you checked (`note(scope='learning', ...)`) same as any other review evidence.
|
||||
|
||||
Reference in New Issue
Block a user