Spaces:
Runtime error
Runtime error
import pytest | |
from playwright.sync_api import expect | |
# Constants | |
GRADIO_PORT = 7861 | |
GRADIO_URL = f"http://localhost:{GRADIO_PORT}" | |
def test_page_loads(page): | |
page.goto(GRADIO_URL) | |
page.wait_for_load_state("networkidle") | |
# Check if title is present with exact text | |
expect(page.locator("h2", has_text="Crowdsourcing Handwriting OCR Dataset")).to_be_visible() |