⏱️ Duration: 34.28s
❌ Error:
self = <tests.test_active_cast.TestActiveCast object at 0x7fb9a16f97b0>
page = <Page url='https://promo.com/activecast/generate'>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_as06_upload_own_photo(self, page: Page, base_url: str) -> None:
"""Logged-in user uploads their own photo on the create page and lands on the generate page with it as the source image.
Upload Photo previously had an asymmetric rollout (present on prod/test05,
absent on test03), but as of 2026-09-06 the qaid probe confirms
upload-photo-btn/upload-photo-input are now present on test03 too, so the
skip has been removed.
"""
login_page = LoginPage(page)
login_page.login_directly(base_url, general_mail(), get_password())
login_page.assert_logged_in_as(fullname)
active_cast = ActiveCastPage(page)
active_cast.navigate_to_create(base_url)
active_cast.click_upload_photo_and_upload(swans_photo_path)
> active_cast.assert_generate_page_title_contains_filename("swans.jpg")
tests/test_active_cast.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.active_cast_page.ActiveCastPage object at 0x7fb9a16e3460>
filename = 'swans.jpg'
def assert_generate_page_title_contains_filename(self, filename: str) -> None:
title = self.page.locator(self.GENERATE_PAGE_TITLE)
> expect(title).to_be_visible(timeout=self.T_UPLOAD)
E AssertionError: Locator expected to be visible
E Actual value: None
E Error: element(s) not found
E Call log:
E - Expect "to_be_visible" with timeout 25000ms
E - waiting for locator("[data-qaid=\"change-image\"] .stage-header__title-text")
E
E Aria snapshot:
E - link "Skip to main content":
E - /url: "#main"
E - banner:
E - link "Go to home":
E - /url: /activecast
E - button "Automate Promo"
E
📸 Failure Screenshot: