stocks / tests /test_e2e_hf.py
Arrechenash's picture
Initial Commit
b2a37ab
raw
history blame contribute delete
596 Bytes
"""E2E tests for HF settings page using Playwright."""
import pytest
from playwright.sync_api import Page, expect
@pytest.mark.e2e
def test_hf_settings_page(page: Page):
"""Test HF settings page loads and displays status."""
page.goto("http://localhost:8080/settings")
expect(page).to_have_title("LT Scanner")
# Check Settings heading exists
heading = page.locator("h1")
expect(heading).to_be_visible()
# Check HF status element exists (may show "Checking connection..." initially)
hf_status = page.locator("#hf-status")
expect(hf_status).to_be_visible()