1
0
Fork 0
firefox/testing/webcompat/shims/tests/test_1624914_google_trends.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
862 B
Python

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")