Spaces:
Running
Running
| """E2E tests for HF settings page using Playwright.""" | |
| import pytest | |
| from playwright.sync_api import Page, expect | |
| 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() | |