⏱️ Duration: 73.15s
❌ Error:
login_page = <pages.login_page.LoginPage object at 0x7fbb07db7a00>
templates_page = <pages.templates_page.TemplatesPage object at 0x7fbb07351510>
editor_page = <pages.editor_page.EditorPage object at 0x7fbb070fe3e0>
publish_page = <pages.publish_page.PublishPage object at 0x7fbb0721bfa0>
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)
templates_page.preview_template_and_verify_share()
templates_page.go_to_templates(base_url)
templates_page.customize_template()
editor_page.verify_editor_loaded()
editor_page.edit_actions_on_timeline()
editor_page.add_new_clip()
editor_page.add_caption()
> editor_page.change_font_and_background_color()
tests/templates/test_templates.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/editor_page.py:400: in change_font_and_background_color
bg_tab.wait_for(state="visible", timeout=self.T_DEFAULT)
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:394: in wait_for_selector
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:76: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7fbb07ddb550>
cb = <function Channel.send.<locals>.<lambda> at 0x
📸 Failure Screenshot:
⏱️ Duration: 36.27s
❌ Error:
login_page = <pages.login_page.LoginPage object at 0x7fbb06177c10>
templates_page = <pages.templates_page.TemplatesPage object at 0x7fbb061e6d40>
editor_page = <pages.editor_page.EditorPage object at 0x7fbb061e6890>
publish_page = <pages.publish_page.PublishPage object at 0x7fbb061e4100>
base_url = 'https://promo.com'
def test_t03_template_page_categories(
login_page, templates_page, editor_page, publish_page, base_url
) -> None:
"""T03: Logged-in user filters, searches and browses every category, then renders a template."""
login_page.login_directly(base_url, general_mail(), get_password())
> templates_page.go_to_templates(base_url)
tests/templates/test_templates.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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_st
📸 Failure Screenshot: