test_1975927_trafficnews_jp.py (504B)
1 import pytest 2 3 URL = "https://trafficnews.jp/" 4 DESKTOP_CSS = "#pickup-slider" 5 MOBILE_CSS = "#main-column" 6 7 8 # Somehow they serve GVE the desktop layout, but not true Fenix? 9 @pytest.mark.only_platforms("android") 10 @pytest.mark.skip_platforms("gve") 11 @pytest.mark.asyncio 12 @pytest.mark.without_interventions 13 async def test_regression(client): 14 await client.navigate(URL, wait="none") 15 assert client.await_css(MOBILE_CSS, is_displayed=True) 16 assert not client.find_css(DESKTOP_CSS, is_displayed=True)