⏱️ Duration: 113.88s
❌ Error:
self = <tests.test_chat_based_editor.TestChatBasedEditor object at 0x7f5426519930>
login_page = <pages.login_page.LoginPage object at 0x7f5426410220>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7f5426413490>
base_url = 'https://promo.com', prompt_key = 'linebreak'
@pytest.mark.skip_smoke
@pytest.mark.parametrize("prompt_key", [
"caption",
"linebreak",
"music",
"outro_values",
"remove_scene",
"text_color",
"text_font",
"logo",
"text_position",
"translation",
"add_scene",
"change_watermark",
])
def test_cbe01_cbe_service_chains_sanity(
self, login_page, autopilot_page, base_url, prompt_key
):
"""
CBE01 CBE service chains sanity
Login as AI user → open Planner → ensure AI posts exist → open 1st
non-voice-over AI post that offers CBE
→ open CBE → send prompt → verify AI response → verify save enabled
→ verify discard popup → save video.
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.ensure_ai_posts_exist()
> autopilot_page.open_first_ai_post_with_cbe(start=1, skip_voice_over=True)
tests/test_chat_based_editor.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.autopilot_page.AutopilotPage object at 0x7f5426413490>, start = 1
max_scan = 6, skip_voice_over = True
def open_first_ai_post_with_cbe(
self, start: int = 1, max_scan: int = None, skip_voice_over: bool = False
) -> int:
"""
Opens AI posts starting at `start`, skipping any that don't offer the
CBE (chat-to-edit) button, and leaves the first eligible one open.
Returns the 1-based index of the post that was opened.
`email_ai` is a shared/persistent prod account: once a post is already
Rated (
📸 Failure Screenshot: