⏱️ Duration: 44.69s
❌ Error:
self = <tests.test_web_dashboard.TestWebDashboard object at 0x7fb89ae86500>
page = <Page url='https://promo.com/dashboard#published'>
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())
if tab == "drafts":
dashboard_page.go_to_drafts(base_url)
else:
dashboard_page.go_to_published(base_url)
dashboard_page.search_non_existing_video("changeology")
> dashboard_page.search_existing_video("video")
tests/test_web_dashboard.py:58:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/dashboard_page.py:103: in search_existing_video
self.page.locator(self.NO_RESULTS_IMAGE).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 0x7fb89ae87a00>
cb = <function Channel.send.<locals>.<lambda> at 0x7fb89a329b40>
is_internal = False, title
📸 Failure Screenshot: