Test Results (6 tests)
⏱️ Duration: 38.72s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f35be8ba0b0>
page = <Page url='https://promo.com/active-stock'>
base_url = 'https://promo.com'
def test_as01_smoke_logged_in_create_page(self, page: Page, base_url: str) -> None:
"""Logged-in user on /active-stock sees header nav, curated catalog preview with category tags, recreate-btn on hover, and lands on /generate-from/."""
login_page = LoginPage(page)
login_page.login_directly(base_url, general_mail(), get_password())
login_page.assert_logged_in_as(fullname)
active_stock = ActiveStockPage(page)
> active_stock.navigate_to_active_stock(base_url)
tests/test_active_stock.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/active_stock_page.py:68: in navigate_to_active_stock
self.page.wait_for_load_state("networkidle")
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:9875: in wait_for_load_state
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:580: in wait_for_load_state
return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:298: in wait_for_load_state
return await self._wait_for_load_state_impl(state, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Frame name= url='https://promo.com/active-stock'>, state = 'networkidle'
timeout = None
async def _wait_for_load_state_impl(
self, state: DocumentLoadState = None, timeout: float = None
) -> None:
if not state:
state = "load"
if state not in ("load", "domcontentloaded", "networkidle", "commit"):
raise Error(
"state: expected one of (load|domcontentloaded|networkidle|commit)"
)
waiter = self._setup_navigation_waiter("wait_for_load_state", timeout)
if
📸 Failure Screenshot:
⏱️ Duration: 30.36s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f35be8b9a20>
page = <Page url='https://promo.com/login?email=promo.test.automation%2Bprod%40gmail.com&password=zovvyh-Wedsuh-becva6'>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_as03_my_videos_action_buttons(self, page: Page, base_url: str) -> None:
"""Logged-in user navigates to My Videos, confirms at least one video exists, and hovers to reveal action buttons."""
login_page = LoginPage(page)
> login_page.login_directly(base_url, general_mail(), get_password())
tests/test_active_stock.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/login_page.py:116: in login_directly
self.page.wait_for_function(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:12594: in wait_for_function
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:1144: in wait_for_function
return await self._main_frame.wait_for_function(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:932: in wait_for_function
await self._channel.send("waitForFunction", self._timeout, params)
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:69: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7f35be8bb550>
cb = <function Channel.send.<locals>.<lambda> at 0x7f35bda24160>
is_internal = False, title = None
async def wrap_api_call(
self, cb: Callable[[], Any], is_internal: bool = False, title: str = None
) -> Any:
if self._api_zone.get():
return await cb()
task = asyncio.current_task(self._loop)
st: List[inspect.FrameInfo] = getattr(
task, "__pw_stack__", None
) or inspect.stack(0)
parsed_st = _extract
📸 Failure Screenshot:
⏱️ Duration: 24.43s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f35be8b96c0>
page = <Page url='https://promo.com/active-stock/generate?imageId=1072528872&imageSource=getty&imageTitle=The+man+screaming+w...qpUiWJ_XLJMBk3be4snkQ4bnF_7AwcIxQC5elQhldck%3D&term=Bizarre&searchType=search&searchTerm=Bizarre&searchRatio=vertical'>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_as04_generate_page_controls_after_image_activation(self, page: Page, base_url: str) -> None:
"""Logged-in user activates an image from the create grid and verifies all generator controls are visible."""
login_page = LoginPage(page)
login_page.login_directly(base_url, general_mail(), get_password())
login_page.assert_logged_in_as(fullname)
active_stock = ActiveStockPage(page)
active_stock.navigate_to_create(base_url)
active_stock.assert_grid_has_at_least_20_items()
active_stock.hover_second_item_and_assert_activate_btn()
> active_stock.activate_image_and_assert_generate_page()
tests/test_active_stock.py:79:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.active_stock_page.ActiveStockPage object at 0x7f35beb3f430>
def activate_image_and_assert_generate_page(self) -> None:
"""Clicks activate-image, then asserts URL, all generator controls visible, and crop/link controls absent."""
with self.page.expect_navigation(timeout=self.T_NETWORK):
self.page.locator(self.ACTIVATE_IMAGE_BTN).first.click(force=True)
self.page.wait_for_load_state("networkidle", timeout=self.T_NETWORK)
assert "/active-stock/generate?imageId=" in self.page.url, (
f"Expected URL to contain '/active-stock/generate?imageId=', got: {self.page.url}"
)
visible_selectors = [
self.CHANGE_IMAGE_BTN,
self.GENERATE_VIDEO_BTN,
self.ACTION_TEMPLATE_SELECTOR,
self.CAMERA_MOVEME
📸 Failure Screenshot:
⏱️ Duration: 37.42s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f35be8b9030>
page = <Page url='https://promo.com/active-stock'>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_as05_full_generation_flow(self, page: Page, base_url: str) -> None:
"""Logged-in user activates an image, configures Kling 3 Standard generation, and waits for video result."""
login_page = LoginPage(page)
login_page.login_directly(base_url, general_mail(), get_password())
login_page.assert_logged_in_as(fullname)
active_stock = ActiveStockPage(page)
> active_stock.navigate_to_active_stock(base_url)
tests/test_active_stock.py:89:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/active_stock_page.py:68: in navigate_to_active_stock
self.page.wait_for_load_state("networkidle")
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:9875: in wait_for_load_state
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:580: in wait_for_load_state
return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:298: in wait_for_load_state
return await self._wait_for_load_state_impl(state, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Frame name= url='https://promo.com/active-stock'>, state = 'networkidle'
timeout = None
async def _wait_for_load_state_impl(
self, state: DocumentLoadState = None, timeout: float = None
) -> None:
if not state:
state = "load"
if state not in ("load", "domcontentloaded", "networkidle", "commit"):
raise Error(
"state: expected one of (load|domcontentloaded|networkidle|commit)"
)
waiter = self._setup_navigation_waiter("wait_for_load_state", timeout)
if state in self._load_s
📸 Failure Screenshot:
⏱️ Duration: 38.38s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f35be8b8cd0>
page = <Page url='https://promo.com/active-stock/create'>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
@pytest.mark.skipif(
_UPLOAD_PHOTO_NOT_ON_TEST03,
reason="Upload Photo not yet deployed to test03 (present on test05 and prod)",
)
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 has an asymmetric rollout: present on prod and test05, absent
on test03 (its build's i18n bundle has no upload-photo-* keys, and
upload-photo-btn/upload-photo-input are absent from the DOM there). Skipped
only on test03 until the rollout catches up there.
"""
login_page = LoginPage(page)
login_page.login_directly(base_url, general_mail(), get_password())
login_page.assert_logged_in_as(fullname)
active_stock = ActiveStockPage(page)
> active_stock.navigate_to_create(base_url)
tests/test_active_stock.py:131:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/active_stock_page.py:72: in navigate_to_create
self.page.wait_for_load_state("networkidle")
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:9875: in wait_for_load_state
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:580: in wait_for_load_state
return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:298: in wait_for_load_state
return await self._wait_for_load_state_impl(state, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Frame name= url='https://promo.com/active-stock/create'>
state = 'networkidle', timeout = None
asyn
📸 Failure Screenshot: