test_1799968_samsung_com.py (654B)
1 import pytest 2 3 URL = "https://www.samsung.com/in/watches/galaxy-watch/galaxy-watch5-44mm-graphite-bluetooth-sm-r910nzaainu/" 4 GOOD_CSS = "html.linux.firefox" 5 ERROR_MSG = "DOMTokenList.add: The empty string is not a valid token." 6 7 8 @pytest.mark.only_platforms("linux") 9 @pytest.mark.asyncio 10 @pytest.mark.with_interventions 11 async def test_enabled(client): 12 await client.navigate(URL) 13 assert client.await_css(GOOD_CSS) 14 15 16 @pytest.mark.only_platforms("linux") 17 @pytest.mark.asyncio 18 @pytest.mark.without_interventions 19 async def test_disabled(client): 20 await client.navigate(URL, await_console_message=ERROR_MSG) 21 assert not client.find_css(GOOD_CSS)