test_1899066_app_bookcreator_com.py (792B)
1 import pytest 2 3 URL = "https://app.bookcreator.com/sign-in" 4 5 SIGN_IN_CSS = "[data-testid=student-sign-in]" 6 UNSUPPORTED_TEXT = "Firefox is not an officially supported browser" 7 8 9 # We can't test on the android emulator as phone- 10 # sized screens are not supported by the app. 11 12 13 @pytest.mark.skip_platforms("android") 14 @pytest.mark.asyncio 15 @pytest.mark.with_interventions 16 async def test_enabled(client): 17 await client.navigate(URL) 18 client.await_css(SIGN_IN_CSS, is_displayed=True) 19 assert not client.find_text(UNSUPPORTED_TEXT) 20 21 22 @pytest.mark.skip_platforms("android") 23 @pytest.mark.asyncio 24 @pytest.mark.without_interventions 25 async def test_disabled(client): 26 await client.navigate(URL) 27 client.await_css(SIGN_IN_CSS, is_displayed=True) 28 assert client.find_text(UNSUPPORTED_TEXT)