{"ok": true, "database": "docs", "table": "sections", "rows": [{"id": "contributing:contributing-playwright", "page": "contributing", "ref": "contributing-playwright", "title": "Running Playwright tests", "content": "Datasette includes a small number of browser automation tests using  Playwright .\n                    These tests are skipped by default, so you can run the main test suite with\n                     uv run pytest  without installing Playwright or any browser binaries. \n                 \n                 The Playwright tests use a separate dependency group. The easiest way to run\n                    them is using  just . First install the browser engine you want to test\n                    against. Chromium is used by default: \n                 just playwright-install \n                 Then run the Playwright test module: \n                 just playwright \n                 You can also run the same tests against Firefox or WebKit by installing that\n                    browser engine and passing it to  just playwright : \n                 just playwright-install firefox\njust playwright firefox\n\njust playwright-install webkit\njust playwright webkit \n                 To install every supported browser engine and run the tests against all of\n                    them, use: \n                 just playwright-install-all\njust playwright-all \n                 You can pass extra  pytest  options after the browser name: \n                 just playwright chromium -k permissions\njust playwright-all -x \n                 You can add the  --headed  option to have Playwright open a browser window that you can see while it runs the tests. This only works if you specify a browser, for example: \n                 just playwright firefox --headed \n                 Combine this with  -k  to watch a specific test: \n                 just playwright chromium --headed -k test_insert_row \n                 If you are not using  just , the equivalent  uv run  commands are: \n                 uv run --group playwright playwright install chromium\nuv run --group playwright pytest tests/test_playwright.py --playwright --browser chromium", "breadcrumbs": "[\"Contributing\", \"Running the tests\"]", "references": "[{\"href\": \"https://playwright.dev/python/\", \"label\": \"Playwright\"}]"}], "primary_keys": ["id"], "primary_key_values": ["contributing:contributing-playwright"], "query_ms": 8.709153975360096, "truncated": false}