⏱️ Duration: 37.68s
❌ Error:
login_page = <pages.login_page.LoginPage object at 0x7f35f562e590>
templates_page = <pages.templates_page.TemplatesPage object at 0x7f35f562c9d0>
editor_page = <pages.editor_page.EditorPage object at 0x7f35f58b4520>
publish_page = <pages.publish_page.PublishPage object at 0x7f35f58b45b0>
base_url = 'https://promo.com'
def test_t02_template_page_after_login(
login_page, templates_page, editor_page, publish_page, base_url
) -> None:
"""T02: Logged-in user previews a template, customizes it in the editor and renders it."""
login_page.login_directly(base_url, general_mail(), get_password())
> templates_page.go_to_templates(base_url)
tests/templates/test_templates.py:51:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/templates_page.py:60: in go_to_templates
self.page.wait_for_load_state("networkidle", timeout=self.T_NETWORK)
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:9980: in wait_for_load_state
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:580: in wait_for_load_state
return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:298: in wait_for_load_state
return await self._wait_for_load_state_impl(state, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Frame name= url='https://promo.com/templates'>, state = 'networkidle'
timeout = 30000
async def _wait_for_load_state_impl(
self, state: DocumentLoadState = None, timeout: float = None
) -> None:
if not state:
state = "load"
if state not in ("load", "domcontentloaded", "networkidle", "commit"):
raise Error(
"state: expected one of (load|domcontentloaded|networkidle|commit)"
)
waiter = self._setup_navigation_waiter("wait_for_load_state",
📸 Failure Screenshot: