test_1898983_elibrary_ferc_gov.py (506B)
1 import pytest 2 3 URL = "https://elibrary.ferc.gov/eLibrary/filelist" 4 5 UNSUPPORTED_TEXT = "Chrome and Edge" 6 7 8 @pytest.mark.asyncio 9 @pytest.mark.with_interventions 10 async def test_enabled(client): 11 await client.navigate(URL) 12 await client.stall(3) 13 assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) 14 15 16 @pytest.mark.asyncio 17 @pytest.mark.without_interventions 18 async def test_disabled(client): 19 await client.navigate(URL) 20 assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)