Test Results (7 tests)
⏱️ Duration: 520.35s
❌ Error:
fixturefunc = <function schedule_yt_li at 0x7fb38556aef0>
request = <FixtureRequest for <Function test_pub04_verify_reschedule_yt_shorts_and_li_posts>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="e6a425363735fc243278a6fcf037cab6")>}
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: 289.04s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="12e076befab36b3cb09094c3773af4aa")>
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 0x7fb38566d120>
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="12e076befab36b3cb09094c3773af4aa")>, '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: 100.66s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="be4787546ff40b330eb60e7d1b3185a1")>
@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="be4787546ff40b330eb60e7d1b3185a1")>
method = <function element_to_be_clickable.<locals>._predicate at 0x7fb3847a6440>
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 0x5e2dd80e30ca <unknown>
E #1 0x5e2dd7daf2b0 <unknown>
E #
📸 Failure Screenshot: