summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/shims/tests/test_1624914_google_trends.py
blob: 1a11713cdc92d51e43e428db16e7304da635f2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import pytest

URL = "https://knowyourmeme.com/memes/awesome-face-epic-smiley"
IFRAME = "iframe#trends-widget-1"


@pytest.mark.skip_platforms("android")
@pytest.mark.asyncio
@pytest.mark.with_shims
async def test_works_with_shims(client):
    await client.load_page_and_wait_for_iframe(URL, client.css(IFRAME))
    assert client.await_css("svg")


@pytest.mark.skip_platforms("android")
@pytest.mark.asyncio
@pytest.mark.without_tcp
@pytest.mark.without_shims
async def test_works_without_etp(client):
    await client.load_page_and_wait_for_iframe(URL, client.css(IFRAME))
    assert client.await_css("body.neterror")


@pytest.mark.skip_platforms("android")
@pytest.mark.asyncio
@pytest.mark.without_shims
async def test_needs_shims(client):
    await client.load_page_and_wait_for_iframe(URL, client.css(IFRAME))
    assert client.await_css("body.neterror")