⏱️ Duration: 310.64s
❌ Error:
self = <tests.test_web_general.TestWebPhase1 object at 0x7fa1349b4550>
main_page = <pages.main_page.MainPage object at 0x7fa134a87250>
@pytest.mark.skip_testenv
@pytest.mark.skip_smoke
@pytest.mark.skip_sanity
def test_w26_promo_performance_tests(self, main_page):
"""
W26 Promo Performance Tests
Navigates to key prod URLs and asserts that server response and DOM
processing times are within acceptable limits.
"""
> main_page.check_performance(_PERF_URLS)
tests/test_web_general.py:206:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/main_page.py:205: in check_performance
server_avg, dom_avg = self.measure_page_performance(url)
pages/main_page.py:198: in measure_page_performance
round(statistics.mean(server_times), 2),
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
data = []
def mean(data):
"""Return the sample arithmetic mean of data.
>>> mean([1, 2, 3, 4, 4])
2.8
>>> from fractions import Fraction as F
>>> mean([F(3, 7), F(1, 21), F(5, 3), F(1, 3)])
Fraction(13, 21)
>>> from decimal import Decimal as D
>>> mean([D("0.5"), D("0.75"), D("0.625"), D("0.375")])
Decimal('0.5625')
If ``data`` is empty, StatisticsError will be raised.
"""
if iter(data) is data:
data = list(data)
n = len(data)
if n < 1:
> raise StatisticsError('mean requires at least one data point')
E statistics.StatisticsError: mean requires at least one data point
/usr/lib/python3.10/statistics.py:328: StatisticsError
📸 Failure Screenshot:
⏱️ Duration: 74.09s
❌ Error:
self = <tests.test_web_render.TestWebRender object at 0x7fa134a84490>
login_page = <pages.login_page.LoginPage object at 0x7fa12ef93f40>
create_page = <pages.create_page.CreatePage object at 0x7fa12ef939d0>
editor_page = <pages.editor_page.EditorPage object at 0x7fa12ef93970>
publish_page = <pages.publish_page.PublishPage object at 0x7fa12ef90910>
base_url = 'https://promo.com'
def test_w04_custom_uploaded_assets_and_render(
self, login_page, create_page, editor_page, publish_page, base_url
):
"""
W04 Add custom uploaded assets to a video and render it
Uploads custom font, watermark, logo, and audio; adds a new video clip
from the media library; adds a photo; changes transitions; verifies
favourites; then publishes.
"""
login_page.login_directly(base_url, general_mail(), get_password())
create_page.navigate_to_create(base_url)
create_page.search_for("summer")
create_page.select_videos_from_type_dropdown()
create_page.customize_first_video()
editor_page.verify_editor_loaded()
editor_page.upload_font_and_add(font_file_path)
editor_page.upload_watermark(watermark_path)
editor_page.upload_logo(brand_logo_path)
> editor_page.upload_audio_and_select(upload_audio_path)
tests/test_web_render.py:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/editor_page.py:644: in upload_audio_and_select
del_btn.hover()
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:18910: in hover
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:477: in hover
return await self._frame.hover(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:746: in hover
await self._channel.send("hover", self._timeout, locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:69: in send
retur
📸 Failure Screenshot: