from playwright.sync_api import sync_playwright, expect def verify_avatar_size(): with sync_playwright() as p: browser = p.chromium.launch(headless=True) page = browser.new_page() # Load the index page directly via file protocol (assuming no build step is needed for CSS) # Note: In a real environment we might need a server, but let's try direct file access first # as tailwind.generated.css might be needed. # Checking if we need to build first. # Actually, let's just inspect the CSS rules applied to an element we create dynamically # or load a simple HTML that imports the CSS. # Let's try to load the app. If it fails, we will create a minimal reproduction. try: # We need to serve the files. Let's use python's http.server in background? # Or just assume we can open index.html if it exists. import os cwd = os.getcwd() page.goto(f"file://{cwd}/index.html") # The app might need JS to render anything. # Let's inject a contact row manually into the body to test the CSS. page.evaluate(""" document.body.innerHTML = `