⏱️ Duration: 45.25s
❌ Error:
login_page = <pages.login_page.LoginPage object at 0x7f29d386b130>
links_page = <pages.links_page.LinksPage object at 0x7f29d386ffa0>
base_url = 'https://promo.com', option = 'manage_brands'
@pytest.mark.parametrize("option", ["multiple_videos", "template", "footage", "manage_brands", "add_new_brand"])
def test_l05_create_new_dropdown_redirects(login_page, links_page, base_url, option):
"""Each Create New dropdown option redirects to its expected destination."""
> login_page.login_directly(base_url, general_mail(), get_password())
tests/links/test_links.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/login_page.py:116: in login_directly
self.page.wait_for_function(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:12761: in wait_for_function
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:1151: in wait_for_function
return await self._main_frame.wait_for_function(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:940: in wait_for_function
await self._channel.send("waitForFunction", self._timeout, params)
/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 0x7f29d430d600>
cb = <function Channel.send.<locals>.<lambda> at 0x7f29d45d2200>
is_internal = False, title = None
async def wrap_api_call(
self, cb: Callable[[], Any], is_internal: bool = False, title: str = None
) -> Any:
if self._api_zone.get():
return await cb()
task = asyncio.current_task(self._loop)
parsed_st = _attach_api_call_information(
getattr(task, "__pw_stack__", None) or _capture_stack_trace(),
is_internal,
title,
📸 Failure Screenshot: