Test Results (13 tests)
⏱️ Duration: 770.59s
❌ Error:
fixturefunc = <function add_drafts_youtube_linkedin_linkedin_page at 0x7fe5ec45c550>
request = <FixtureRequest for <Function test_pub01_verify_publish_and_schedule_for_yt_shorts_and_li_posts>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="c2e05a555cf062a6eb24577698379219")>}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
venv/lib/python3.10/site-packages/_pytest/fixtures.py:917:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_publisher_page.py:360: in add_drafts_youtube_linkedin_linkedin_page
bs_fail_with_traceback(browser, add_drafts_youtube_linkedin_linkedin_page, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_publisher_page.py:357: in add_drafts_youtube_linkedin_linkedin_page
select_social_account_for_post(browser, "linkedin page")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="c2e05a555cf062a6eb24577698379219")>
social_type = 'linkedin page'
def select_social_account_for_post(browser, social_type):
"""
Add a LinkedIn draft with already connected private account
📸 Failure Screenshot:
⏱️ Duration: 1005.12s
❌ Error:
fixturefunc = <function publish_tiktok_private at 0x7fe5ec4569e0>
request = <FixtureRequest for <Function test_pub03_verify_publish_tiktok>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="678214e8d10598d8163613f136769add")>}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
venv/lib/python3.10/site-packages/_pytest/fixtures.py:917:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_publisher_page.py:219: in publish_tiktok_private
bs_fail_with_traceback(browser, publish_tiktok_private, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_publisher_page.py:217: in publish_tiktok_private
publish_tiktok_as_private(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="678214e8d10598d8163613f136769add")>
def publish_tiktok_as_private(browser):
"""
Publishes one private post to TikTok
Social accounts are always connected, this test doesn't cover the connection flow
"""
time.sleep(2)
add_video_to_post(browser)
do_send_keys(browser, ADD_TEXT_TO_TIKTOK_
📸 Failure Screenshot:
⏱️ Duration: 1085.88s
❌ Error:
fixturefunc = <function schedule_yt_li at 0x7fe5ec456d40>
request = <FixtureRequest for <Function test_pub04_verify_reschedule_yt_shorts_and_li_posts>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="4ae0c6f368d6ee819fa6896d25cbcaed")>}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
venv/lib/python3.10/site-packages/_pytest/fixtures.py:917:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_publisher_page.py:235: in schedule_yt_li
bs_fail_with_traceback(browser, schedule_yt_li, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_publisher_page.py:233: in schedule_yt_li
schedule_posts_yt_and_li(browser)
pages/publisher_page.py:826: in schedule_posts_yt_and_li
schedule_ready_draft(browser, 2)
pages/publisher_page.py:739: in schedule_ready_draft
do_click(browser, radio_elem, 10)
helpers/common_helpers.py:200: in do_click
WebDriverWait(browser, sec, poll_frequency=0.4).until(
venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py:92: in until
value = method(self._driver)
venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py:356: in _predicate
📸 Failure Screenshot:
⏱️ Duration: 436.15s
❌ Error:
fixturefunc = <function opens_planner at 0x7fe5ec07cdc0>
request = <FixtureRequest for <Function test_pub05_verify_post_duplication_and_deletion>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="dbb07cff65465953112144eaf734d9b1")>}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
venv/lib/python3.10/site-packages/_pytest/fixtures.py:917:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_planner_page.py:62: in opens_planner
bs_fail_with_traceback(browser, opens_planner, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_planner_page.py:60: in opens_planner
verify_user_on_planner(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="dbb07cff65465953112144eaf734d9b1")>
waiting = 10
def verify_user_on_planner(browser, waiting=10):
"""
Verifies if we are on Planner page
"""
> assert is_visible(browser, MY_CAL_CURRENT_DAY, waiting)
E AssertionError
pages/planner_page.py:20: AssertionError
📸 Failure Screenshot:
⏱️ Duration: 1143.94s
❌ Error:
fixturefunc = <function open_planner_mobile at 0x7fe5ec450940>
request = <FixtureRequest for <Function test_pub06_verify_planner_functionalities_on_mobile>>
kwargs = {'mob_browser': <selenium.webdriver.remote.webdriver.WebDriver (session="fe23064f8a05c517b8b0bc71fc64667e")>}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
venv/lib/python3.10/site-packages/_pytest/fixtures.py:917:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_mobile_view.py:113: in open_planner_mobile
bs_fail_with_traceback(mob_browser, open_planner_mobile, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_mobile_view.py:111: in open_planner_mobile
open_planner_mob(mob_browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
mob_browser = <selenium.webdriver.remote.webdriver.WebDriver (session="fe23064f8a05c517b8b0bc71fc64667e")>
def open_planner_mob(mob_browser):
"""
Opens Planner directly
"""
mob_browser.get(my_calendar_url)
close_ai_onboarding(mob_browser)
time.sleep(5)
get_title = mob_browser.title
> assert get_title == planner_title
E AssertionError
⏱️ Duration: 262.38s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="294c719e75348a193d8e469ef1539133")>
def verify_post_not_rendered_or_not_listicle(browser):
"""
Assert that video is not rendered by checking availability of Regeneration button and CBE
Delete a post if assertion failed or Advanced settings button is displayed
"""
try:
assert is_visible(browser, AI_POST_REGENERATION_ICON, 15), "Video is already rendered"
assert is_visible(browser, AICHAT_CHAT_TO_EDIT_BUTTON) # CBE button should be available
if is_visible(browser, VOICE_OVER_ADV_SETTINGS_BTN):
> raise Exception('AI post is rendered or VO listicle.')
E Exception: AI post is rendered or VO listicle.
pages/autopilot_page.py:600: Exception
During handling of the above exception, another exception occurred:
fixturefunc = <function ai_open_preview at 0x7fe5ec660f70>
request = <FixtureRequest for <Function test_pub11_create_a_new_aspect_ratio_for_an_ai_post_in_the_publisher>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="294c719e75348a193d8e469ef1539133")>, 'number': '5'}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
fixture_result = next(generator)
except StopIteration:
raise ValueError(f"{request.fixturename} did not yield a value") from None
finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
request.addfinalizer(finalizer)
else:
fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
> fixture_result = fixturefunc(**kwargs)
v
📸 Failure Screenshot:
⏱️ Duration: 103.06s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="b566809c1c362abeb40eef8228745642")>
@then('I assert close the button closes the pop-up')
def close_learn_popup(browser):
try:
> do_click(browser, AI_CLOSE_CROP_MODAL)
tests/test_assertion.py:427:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
helpers/common_helpers.py:200: in do_click
WebDriverWait(browser, sec, poll_frequency=0.4).until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="b566809c1c362abeb40eef8228745642")>
method = <function element_to_be_clickable.<locals>._predicate at 0x7fe5ea28de10>
message = ''
def until(self, method: Callable[[WebDriver], Union[Literal[False], T]], message: str = "") -> T:
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.
:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None
end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, "screen", None)
stacktrace = getattr(exc, "stacktrace", None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message:
E Stacktrace:
E #0 0x61ac8ba600ca <unknown>
E #1 0x61ac8b72c2b0 <unknown>
E #
📸 Failure Screenshot: