⏱️ Duration: 383.44s
❌ Error:
self = <tests.test_chat_based_editor.TestChatBasedEditor object at 0x7f82395cccd0>
page = <Page url='https://promo.com/planner/promoai'>
base_url = 'https://promo.com'
def test_cbe07_change_intro_amazon_product_video(
self, page, base_url
):
"""
CBE07 Change the intro for an Amazon product video
Go to homepage with TID=0 → provide Amazon product URL → click Generate
→ verify AI flow login loader → create new Promo-domain account
→ skip survey → wait for onboarding timer → skip tutorial
→ open first Amazon AI post → verify Amazon-specific buttons
→ open CBE → change intro via 'amazon_intro' prompt → verify save enabled
→ open advanced settings → open edit script → add sentence → save
→ confirm regeneration → wait for regeneration → verify save enabled → save video.
"""
main_page = MainPage(page)
signup_page = SignUpPage(page)
autopilot_page = AutopilotPage(page)
main_page.go_to_homepage_with_tid(base_url, "0")
main_page.provide_autopilot_input(amazon_product)
main_page.click_video_settings_next()
main_page.assert_ai_flow_login_loader()
signup_page.fill_signup_form_in_ai_flow(fullname, random_password)
signup_page.skip_survey()
# Wait for the generation timer screen → skip tutorial
autopilot_page.page.locator(autopilot_page.AI_GENERATOR_TIMER).wait_for(
state="visible", timeout=120_000
)
autopilot_page.page.locator(autopilot_page.AI_GENERATOR_SKIP_VIDEO).wait_for(
state="visible", timeout=30_000
)
autopilot_page.page.locator(autopilot_page.AI_GENERATOR_SKIP_VIDEO).click()
# Planner loads with the Amazon AI post — generation can take several minutes
> autopilot_page.page.locator(autopilot_page.PLANNER_AI_BADGE).first.wait_for(
state="visible", timeout=360_000
)
tests/test_chat_b
📸 Failure Screenshot: