test_1982295_hall_ssjj_cn.py (602B)
1 import pytest 2 3 URL = "https://hall.ssjj.cn/live/" 4 5 WRAP_SCALE_CSS = "#app > .wrap-scale" 6 7 8 async def is_content_clipped(client): 9 await client.navigate(URL) 10 wrap = client.await_css(WRAP_SCALE_CSS) 11 return client.execute_script( 12 "return arguments[0].clientHeight < arguments[0].parentNode.clientHeight", wrap 13 ) 14 15 16 @pytest.mark.asyncio 17 @pytest.mark.with_interventions 18 async def test_enabled(client): 19 assert not await is_content_clipped(client) 20 21 22 @pytest.mark.asyncio 23 @pytest.mark.without_interventions 24 async def test_disabled(client): 25 assert await is_content_clipped(client)