test_1902405_soffice_11st_co_kr.py (980B)
1 import pytest 2 3 URL = "https://soffice.11st.co.kr/view/intro" 4 5 UNSUPPORTED_CSS = ".c-browser" 6 UNSUPPORTED_TEXT = "크롬 브라우저" 7 8 9 async def await_text(client, do_expect_text): 10 await client.navigate(URL, wait="none") 11 assert client.await_css( 12 UNSUPPORTED_CSS, 13 condition=f"elem.innerText.includes('{UNSUPPORTED_TEXT}')", 14 is_displayed=do_expect_text, 15 timeout=30, 16 ) 17 18 19 @pytest.mark.skip_platforms("android") 20 @pytest.mark.asyncio 21 @pytest.mark.with_interventions 22 async def test_enabled(client): 23 await await_text(client, False) 24 25 26 @pytest.mark.skip_platforms("android") 27 @pytest.mark.asyncio 28 @pytest.mark.without_interventions 29 async def test_disabled(client): 30 await await_text(client, True) 31 32 33 @pytest.mark.only_platforms("android") 34 @pytest.mark.asyncio 35 @pytest.mark.without_interventions 36 async def test_not_on_mobile(client): 37 await client.navigate(URL) 38 await client.stall(2) 39 assert not client.find_text(UNSUPPORTED_TEXT)