⏱️ Duration: 69.33s
❌ Error:
self = <tests.test_chat_based_editor.TestChatBasedEditor object at 0x7fa016b0d240>
login_page = <pages.login_page.LoginPage object at 0x7fa016b0b550>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7fa016ae7910>
base_url = 'https://promo.com', prompt_key = 'text_font'
@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)
autopilot_page.open_cbe()
autopilot_page.send_cbe_prompt_and_wait(CBE_PROMPTS[prompt_key])
# text_font / text_position are known to be slower on the backend to
# apply and enable Save (documented flaky report in migration_log.md);
# give them extra headroom instead of the default 30s.
save_timeout = 60_000 if prompt_key in ("text_font", "text_position") else 30_000
> autopilot_page.verify_cbe_save_enabled(timeout=save_timeout)
tests/test_chat_based_editor.py:86:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.autopilot_page.AutopilotPage object at 0x7fa016ae7910>
timeout = 60000
📸 Failure Screenshot:
⏱️ Duration: 38.85s
❌ Error:
self = <tests.test_chat_based_editor.TestChatBasedEditor object at 0x7fa016b0c400>
login_page = <pages.login_page.LoginPage object at 0x7fa0155dbf10>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7fa015596110>
base_url = 'https://promo.com', prompt_key = 'stock_photo'
@pytest.mark.skip_smoke
@pytest.mark.parametrize("prompt_key", [
"stock_video",
"stock_photo",
"uploaded_video",
"uploaded_photo",
])
def test_cbe03_replace_a_clip(
self, login_page, autopilot_page, base_url, prompt_key
):
"""
CBE03 Replace a clip
Login as AI user → open Planner → open the first AI post from #3
onward that still offers CBE → open CBE → send clip-replacement
prompt → verify media library → select first clip → verify discard
popup → save video.
Starts scanning at post #3 rather than assuming it's free: `email_ai`
is a shared/persistent prod account, and once a post is Rated its
chat/regenerate controls disappear from the UI permanently (verified
via DOM inspection) — a hardcoded index would fail deterministically
the moment that specific post gets rated by any run.
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.ensure_ai_posts_exist(min_count=3)
autopilot_page.open_first_ai_post_with_cbe(start=3, skip_voice_over=True)
autopilot_page.open_cbe()
autopilot_page.send_cbe_prompt_and_wait(CBE_PROMPTS[prompt_key])
> autopilot_page.select_cbe_clip()
tests/test_chat_based_editor.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1670: in select_cbe_clip
first_item.wait_for(state="visible", timeout=25_000)
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/
📸 Failure Screenshot: