⏱️ Duration: 255.34s
❌ Error:
self = <tests.publisher_yt_linkedin.test_publisher_yt_linkedin.TestPublisherYtLinkedin object at 0x7fd267307cd0>
main_page = <pages.main_page.MainPage object at 0x7fd267553910>
sign_up_page = <pages.sign_up_page.SignUpPage object at 0x7fd2651254e0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7fd265124700>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7fd2664e2a70>
base_url = 'https://promo.com'
def test_pub13_new_user_bulk_delete_ai_posts(
self, main_page, sign_up_page, autopilot_page, my_account_page, base_url
):
main_page.go_to_homepage_with_tid(base_url, "200220240")
sign_up_page.create_account(
base_url, f"promo.auto.pub13.{uuid.uuid4().hex[:8]}@promo.com", fullname, random_password
)
sign_up_page.skip_survey()
ap = autopilot_page
ap.page.locator(ap.WEBSITE_TOPIC_URL_INPUT).wait_for(state="visible", timeout=ap.T_LOAD)
ap.page.locator(ap.WEBSITE_TOPIC_URL_INPUT).fill(sample_ai_website)
ap.page.locator(ap.AUTOPILOT_CONTINUE_BUTTON).click()
ap.assert_business_assets_fetched()
ap.click_generate_ai_posts_button()
# Start on the 1st of next month so all 5 posts land in one calendar month
ap.start_post_plan_on_first_of_next_month()
ap.set_posts_amount(5)
ap.assert_posts_amount_in_wizard("5")
ap.click_generate_ai_posts_button()
ap.skip_generation_and_go_to_planner()
ap.wait_for_ai_posts_in_planner()
# Flaky (env): posts keep appearing one by one after the planner opens — allow generation time.
> ap.assert_ai_post_count(5, timeout=180_000)
tests/publisher_yt_linkedin/test_publisher_yt_linkedin.py:428:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.autopilot_page.AutopilotPage object at 0x7fd265124700>
expected = 5, timeout = 180000
def assert_ai_post_count(self, expected: int, timeout: int = 30
📸 Failure Screenshot: