From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../tests/test_1836103_autostar_novoross_ru.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py (limited to 'testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py') diff --git a/testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py b/testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py new file mode 100644 index 0000000000..d63fd666fe --- /dev/null +++ b/testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py @@ -0,0 +1,29 @@ +import pytest + +URL = "https://autostar-novoross.ru/" +IFRAME_CSS = "iframe[src*='google.com/maps']" + + +async def map_is_correct_height(client): + await client.navigate(URL) + iframe = client.await_css(IFRAME_CSS) + assert iframe + return client.execute_script( + """ + const iframe = arguments[0]; + return iframe.clientHeight == iframe.parentNode.clientHeight; + """, + iframe, + ) + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + assert await map_is_correct_height(client) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + assert not await map_is_correct_height(client) -- cgit v1.2.3