test_1892898_investopedia_com.py (577B)
1 import pytest 2 3 URL = "https://www.investopedia.com/banking-4427754" 4 5 CARD_CSS = ".card__content[data-tag=Banking]" 6 7 8 async def are_cards_too_tall(client): 9 await client.navigate(URL) 10 card = client.await_css(CARD_CSS, is_displayed=True) 11 return client.execute_script( 12 """ 13 return arguments[0].getBoundingClientRect().height > window.innerHeight; 14 """, 15 card, 16 ) 17 18 19 @pytest.mark.skip_platforms("android") 20 @pytest.mark.asyncio 21 @pytest.mark.without_interventions 22 async def test_regression(client): 23 assert not await are_cards_too_tall(client)