"""Shared by both page checks: one headless Chromium for the whole run (Playwright's sync API allows only one instance per process).""" import pytest from playwright.sync_api import sync_playwright @pytest.fixture(scope="session") def browser(): with sync_playwright() as p: b = p.chromium.launch() yield b b.close()