import pytest URL = "https://character.ai/chat/NrVgl5IP6AyWq7ZCQtzJ6Y8TZHevcJtD7FJxOiUpOD0" DESCRIPTION_CSS = "[data-testid=product-description]" async def is_text_italicized(client): await client.navigate(URL) # rather than trying to log in and such, let's just create the markup the site is # expected to make, and check whether the font appears italicized by comparing it # to a screenshot after italics have been forced using the CSS we are applying. client.execute_script( """document.body.innerHTML = `