blob: 1daec3fa834169ac9b696531538d828621b33e13 (
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
30
31
|
import pytest
URL = "https://m.myvidster.com/"
CONTAINER_CSS = "#home_refresh_var"
def content_is_cropped(client):
container = client.await_css(CONTAINER_CSS, is_displayed=True)
assert container
return client.execute_script(
"""
return arguments[0].clientHeight < 100
""",
container,
)
@pytest.mark.only_platforms("android")
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
await client.navigate(URL)
assert not content_is_cropped(client)
@pytest.mark.only_platforms("android")
@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
await client.navigate(URL)
assert content_is_cropped(client)
|