test_1827678_83269_jelly_jd_com.py (570B)
1 import pytest 2 3 URL = "https://jelly.jd.com/article/61074ef0800f53019cb4dac0" 4 5 UNSUPPORTED_TEXT = "前往下载 Chrome 浏览器" 6 7 8 @pytest.mark.only_platforms("android") 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL, wait="load") 13 assert not client.find_text(UNSUPPORTED_TEXT) 14 15 16 @pytest.mark.only_platforms("android") 17 @pytest.mark.asyncio 18 @pytest.mark.without_interventions 19 async def test_disabled(client): 20 await client.navigate(URL, wait="load") 21 assert client.await_text(UNSUPPORTED_TEXT)