File size: 380 Bytes
d4167d9
 
 
 
e6a8682
d4167d9
 
 
 
 
 
 
e6a8682
1
2
3
4
5
6
7
8
9
10
11
12
13
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()