⏱️ Duration: 37.28s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f727579d990>
page = <Page url='https://promo.com/active-stock/create'>
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)
tests/test_active_stock.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/active_stock_page.py:80: in navigate_to_create
self.page.goto(f"{base_url}/active-stock/create")
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:9875: in goto
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:560: in goto
return await self._main_frame.goto(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:156: in goto
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:76: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7f727579fd90>
cb = <function Channel.send.<locals>.<lambda> at 0x7f72757ac940>
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)
parsed_st = _attach_api_call_information(
getattr(task, "__pw_stack__", None) or _capture_stac
📸 Failure Screenshot:
⏱️ Duration: 23.91s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f727579e5c0>
page = <Page url='https://promo.com/active-stock/generate?imageId=2766993617&imageSource=shutterstock&imageTitle=Young+woman+...2Fyoung-woman-laughs-loudly-hand-600nw-2766993617.jpg&term=happy&searchType=category&searchTerm=happy&searchRatio=all'>
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)
active_stock.click_create_in_nav()
active_stock.assert_grid_has_at_least_20_items()
active_stock.hover_first_item_and_click_activate()
active_stock.select_second_action_template()
active_stock.fill_scene_action(
"The man is indoors, wearing the same pink polo shirt. "
"Preserve his identity, hairstyle, outfit. The man is terrifies and shouts."
)
> active_stock.assert_speaker_chip_avatar_visible()
tests/test_active_stock.py:99:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.active_stock_page.ActiveStockPage object at 0x7f726fcb8490>
def assert_speaker_chip_avatar_visible(self) -> None:
> expect(self.page.locator(self.SPEAKER_CHIP_AVATAR).first).to_be_visible(timeout=self.T_LOAD)
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 15000ms
E - waiting for locator(".speaker-chip__avatar").first
E
E Aria snapshot:
E - link "Skip to main con
📸 Failure Screenshot: