test_1574522_enuri_com.py (699B)
1 import pytest 2 3 URL = "http://enuri.com" 4 DESKTOP_VP = "width=1280" 5 MOBILE_VP = "width=device-width,initial-scale=1.0" 6 7 8 def get_meta_viewport_content(client): 9 mvp = client.await_css("meta[name=viewport]") 10 return client.get_element_attribute(mvp, "content") 11 12 13 @pytest.mark.only_platforms("android") 14 @pytest.mark.asyncio 15 @pytest.mark.with_interventions 16 async def test_enabled(client): 17 await client.navigate(URL) 18 assert MOBILE_VP == get_meta_viewport_content(client) 19 20 21 @pytest.mark.only_platforms("android") 22 @pytest.mark.asyncio 23 @pytest.mark.without_interventions 24 async def test_disabled(client): 25 await client.navigate(URL) 26 assert DESKTOP_VP == get_meta_viewport_content(client)