⏱️ Duration: 18.59s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7f35f4e19660>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7f35f4fdb010>
login_page = <pages.login_page.LoginPage object at 0x7f35f4d7f340>
base_url = 'https://promo.com'
def test_a02_verify_external_share_for_ai_posts(
self, autopilot_page, login_page, base_url
):
"""
A02 Verify external share for AI posts
Feature scenario:
Given AI user is logged in
When I open Planner
Then I clean all scheduled posts for the current month
When I click on 1 AI Post
When I generate ai external share link
Then I open external link as logged user
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.clean_scheduled_posts()
autopilot_page.go_to_planner(base_url)
autopilot_page.open_ai_post(1)
> share_url = autopilot_page.generate_ai_external_share_link()
tests/test_autopilot.py:203:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:747: in generate_ai_external_share_link
self.page.locator(self.PLANNER_PREVIEW_COPY_LINK_SUCCESS_ICON).wait_for(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20048: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:741: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:372: in wait_for_selector
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:69: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7f35f4d7d5a0>
cb = <function Channel.send.<locals>.<lambda> at 0x7
📸 Failure Screenshot: