From 2de5966a4ef41352dc28bbadfc16d488da935515 Mon Sep 17 00:00:00 2001 From: Bu5hm4nn Date: Sat, 4 Apr 2026 18:30:40 +0200 Subject: [PATCH] refactor: move Playwright tests to tests/e2e/ with proper conftest - Move conftest_playwright.py to tests/e2e/conftest.py for proper pytest discovery - Move test_playwright_server.py to tests/e2e/ - Server fixture starts FastAPI with uvicorn for isolated E2E testing --- tests/{conftest_playwright.py => e2e/conftest.py} | 0 tests/{ => e2e}/test_playwright_server.py | 4 ---- 2 files changed, 4 deletions(-) rename tests/{conftest_playwright.py => e2e/conftest.py} (100%) rename tests/{ => e2e}/test_playwright_server.py (97%) diff --git a/tests/conftest_playwright.py b/tests/e2e/conftest.py similarity index 100% rename from tests/conftest_playwright.py rename to tests/e2e/conftest.py diff --git a/tests/test_playwright_server.py b/tests/e2e/test_playwright_server.py similarity index 97% rename from tests/test_playwright_server.py rename to tests/e2e/test_playwright_server.py index c067fcb..f390463 100644 --- a/tests/test_playwright_server.py +++ b/tests/e2e/test_playwright_server.py @@ -9,14 +9,10 @@ This test file verifies that: from __future__ import annotations -import sys from pathlib import Path from playwright.sync_api import expect -# Import the server fixture from conftest_playwright -sys.path.insert(0, str(Path(__file__).parent)) - ARTIFACTS = Path("tests/artifacts") ARTIFACTS.mkdir(parents=True, exist_ok=True)