test_1624914_google_trends.py (862B)
1 import pytest 2 3 URL = "https://knowyourmeme.com/memes/awesome-face-epic-smiley" 4 IFRAME = "iframe#trends-widget-1" 5 6 7 @pytest.mark.skip_platforms("android") 8 @pytest.mark.asyncio 9 @pytest.mark.with_shims 10 async def test_works_with_shims(client): 11 await client.load_page_and_wait_for_iframe(URL, client.css(IFRAME)) 12 assert client.await_css("svg") 13 14 15 @pytest.mark.skip_platforms("android") 16 @pytest.mark.asyncio 17 @pytest.mark.without_tcp 18 @pytest.mark.without_shims 19 async def test_works_without_etp(client): 20 await client.load_page_and_wait_for_iframe(URL, client.css(IFRAME)) 21 assert client.await_css("body.neterror") 22 23 24 @pytest.mark.skip_platforms("android") 25 @pytest.mark.asyncio 26 @pytest.mark.without_shims 27 async def test_needs_shims(client): 28 await client.load_page_and_wait_for_iframe(URL, client.css(IFRAME)) 29 assert client.await_css("body.neterror")