handwriting-ocr / test_e2e.py
Raymond Weitekamp
Fix OAuth implementation and visibility handling
e6a8682
raw
history blame
380 Bytes
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()