# ABOUTME: Basic smoke tests to verify the e2e test setup works. # ABOUTME: Tests server startup, health endpoint, and page loading. import pytest import requests from playwright.sync_api import Page, expect pytestmark = pytest.mark.e2e def test_healthz_endpoint(live_server): """Verify health endpoint returns OK.""" response = requests.get(f"{live_server.url}/healthz") assert response.status_code == 200 assert response.text == "OK" def test_home_page_loads(page: Page, live_server): """Verify the home page loads successfully.""" page.goto(live_server.url) # Should see the page body expect(page.locator("body")).to_be_visible() def test_animals_page_accessible(page: Page, live_server): """Verify animals list page is accessible.""" page.goto(f"{live_server.url}/animals") # Should see some content (exact content depends on seed data) expect(page.locator("body")).to_be_visible()