⏱️ Duration: 35.32s
❌ Error:
self = <tests.test_web_dashboard.TestWebDashboard object at 0x7f35747c2350>
page = <Page url='https://promo.com/login'>, base_url = 'https://promo.com'
tab = 'published'
@pytest.mark.parametrize("tab", ["drafts", "published"])
def test_w28_search_bar_in_dashboard(self, page, base_url, tab):
"""
W28 Verify search bar in Dashboard
For each tab (drafts, published): search for a non-existing keyword and assert
no thumbnails appear, then search for an existing keyword and assert results show.
"""
login_page = LoginPage(page)
dashboard_page = DashboardPage(page)
> login_page.login_directly(base_url, general_mail(), get_password())
tests/test_web_dashboard.py:50:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 0x7f35747c3a00>
cb = <function Channel.send.<locals>.<lambda> at 0x7f3574abb640>
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
📸 Failure Screenshot: