⏱️ Duration: 459.29s
❌ Error:
self = <tests.test_chat_based_editor.TestChatBasedEditor object at 0x7f56e8a6c5b0>
page = <Page url='https://promo.com/planner/promoai?term=https%3A%2F%2Fwww.amazon.com%2Fdp%2FB00JXQ06X8&flow=video-settings&g...on_source=Homepage&ai_video_type=ECOMMERCE_ITEM&ai_session_id=362719c7-346c-429c-8e1f-6aeb47b9189b&auto_generate=true'>
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.
Homepage TID=0 → Amazon URL → video settings → new account → skip survey
→ wait for generation (skip tutorial when it appears) → open first post
→ verify CBE + voice settings present → change intro via 'amazon_intro'
→ verify save enabled → open advanced settings → edit script → save
→ confirm regeneration → wait for regeneration → verify save enabled → save.
"""
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 up to 5 minutes for the skip-tutorial button to appear.
# Generation screen shows this button once backend processing starts;
# the window is generous because the first run after signup can be slow.
from playwright.sync_api import TimeoutError as PlaywrightTimeoutError
try:
autopilot_page.page.locator(autopilot_page.AI_GENERATOR_SKIP_VIDEO).wait_for(
state="visible", timeout=300_000
)
autopilot_page.page.locator(autopilot_page.AI_GENERATOR_SKIP_VIDEO).click()
autopilot_page.page.wait_for_url(
📸 Failure Screenshot: