test(dashboard): fix playwright importorskip placement

Move importorskip after playwright import so module-level
import error triggers skip rather than collection error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
JerrettDavis 2026-04-21 00:10:05 -05:00
parent cc7ad822f4
commit c15f9836b6

View file

@ -1,7 +1,7 @@
import pytest
from playwright.sync_api import sync_playwright
pytest.importorskip("playwright", reason="Playwright not installed — dashboard E2E tests skipped")
pytest.importorskip("playwright")
from playwright.sync_api import sync_playwright
@pytest.fixture(scope="module")