⏱️ Duration: 38.22s
❌ Error:
self = <tests.test_active_stock.TestActiveStock object at 0x7f58df2dccd0>
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: