⏱️ Duration: 83.46s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7fb8a1ecae90>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7fb8a1efdea0>
login_page = <pages.login_page.LoginPage object at 0x7fb8a1efff10>
base_url = 'https://promo.com'
@pytest.mark.skip_testenv
def test_a01p_verify_actions_on_ai_posts_in_planner(
self, autopilot_page, login_page, base_url
):
"""
A01P Verify actions on the AI posts in planner (prod only)
Same scenario as A01T — runs on prod, skipped on testenv.
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.ensure_ai_posts_exist()
# i-icon tooltip
autopilot_page.hover_i_icon(1)
autopilot_page.assert_i_icon_tooltip_visible(1)
autopilot_page.assert_ai_badge_tooltip_visible()
# Post 1: full preview checks + regeneration
autopilot_page.open_ai_post(1)
autopilot_page.assert_ai_post_tag_visible()
autopilot_page.assert_aspect_ratios_visible()
autopilot_page.assert_preview_dropdown_buttons_visible()
autopilot_page.assert_preview_cta_buttons_visible()
autopilot_page.assert_preview_cta_tooltips()
autopilot_page.assert_ai_specific_buttons_visible()
autopilot_page.assert_video_loaded()
autopilot_page.check_single_post_regeneration()
autopilot_page.close_preview()
# Post 2: positive feedback
autopilot_page.open_ai_post(2)
> autopilot_page.verify_positive_feedback()
tests/test_autopilot.py:170:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:622: in verify_positive_feedback
self._submit_feedback()
pages/autopilot_page.py:600: in _submit_feedback
self.page.locator(self.AI_POST_FEEDBACK_ICON_RATED).wait_for(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:200
📸 Failure Screenshot:
⏱️ Duration: 38.65s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7fb8a1ecbd30>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7fb89a6d91b0>
login_page = <pages.login_page.LoginPage object at 0x7fb8a0285d20>
publisher_page = <pages.publisher_page.PublisherPage object at 0x7fb8a0285c30>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
@pytest.mark.skip_sanity
def test_a06_schedule_an_ai_post(
self, autopilot_page, login_page, publisher_page, base_url
):
"""
A06 Schedule an AI post
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 2 AI Post
And I click the schedule button
And I schedule an AI post (calendar confirm)
And I complete the schedule flow on the publisher page
And I click the view planner button
Then I verify that user is redirected to the planner
Then Assert amount of scheduled posts in planner: 1
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.clean_scheduled_posts()
autopilot_page.open_ai_post(2)
autopilot_page.click_schedule_button()
autopilot_page.schedule_ai_post()
publisher_page.select_schedule_mode()
publisher_page.click_publish()
publisher_page.assert_publish_review(PublisherPage.STATUS_SCHEDULE)
publisher_page.confirm_publish()
> autopilot_page.click_view_planner_button()
tests/test_autopilot.py:316:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:817: in click_view_planner_button
self.page.locator(self.VIEW_PLANNER_BUTTON).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-pack
📸 Failure Screenshot: