Test Results (23 tests)
⏱️ Duration: 434.42s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="045a9b788ef4e6ec9df1dc8cc8109ff0")>
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 0x7f0681574ee0>
request = <FixtureRequest for <Function test_cbe01_cbe_service_chains_sanity[caption]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="045a9b788ef4e6ec9df1dc8cc8109ff0")>, 'number': '1'}
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
📸 Failure Screenshot:
⏱️ Duration: 386.30s
❌ Error:
fixturefunc = <function ai_verify_ai_chat at 0x7f0681571240>
request = <FixtureRequest for <Function test_cbe01_cbe_service_chains_sanity[text_position]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="100c2e8e6c2982386c105486f8b56eb4")>, 'prompt': 'text_position'}
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_autopilot_page.py:773: in ai_verify_ai_chat
bs_fail_with_traceback(browser, ai_verify_ai_chat, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_autopilot_page.py:771: in ai_verify_ai_chat
ai_chat_verify_sending_message(browser, possible_prompts.get(prompt))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="100c2e8e6c2982386c105486f8b56eb4")>
prompt = 'I want the first caption to be in a opposite corner'
def ai_chat_verify_sending_message(browser, prompt: str):
"""
Prompt will be used as a message in chat (ai_chat_provide_prompt). All prompts are stored in testdata.p
📸 Failure Screenshot:
⏱️ Duration: 690.69s
❌ Error:
fixturefunc = <function upload_video_with_url at 0x7f0681572200>
request = <FixtureRequest for <Function test_cbe04_upload_via_filestack_url[photo]>>
kwargs = {'asset': 'photo', 'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="1c1ec6c917556051888afe3d6469df41")>}
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_autopilot_page.py:880: in upload_video_with_url
bs_fail_with_traceback(browser, upload_video_with_url, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_autopilot_page.py:877: in upload_video_with_url
do_send_keys(browser, AICHAT_URL_INPUT, asset_urls.get(asset))
helpers/common_helpers.py:457: in do_send_keys
WebDriverWait(browser, sec, poll_frequency=0.4).until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="1c1ec6c917556051888afe3d6469df41")>
method = <function visibility_of_element_located.<locals>._predicate at 0x7f067f0a4a60>
message = ''
def until(self, method: Callable[[WebDriver], Uni
📸 Failure Screenshot:
⏱️ Duration: 323.35s
❌ Error:
fixturefunc = <function ai_logged_in_new_shorter at 0x7f068153bc70>
request = <FixtureRequest for <Function test_cbe05_verify_voice_changes_are_not_possible_for_nonnarrated_videos>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="d87397f24f21ab6bca2c4c6b051f1ab9")>}
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_autopilot_page.py:22: in ai_logged_in_new_shorter
bs_fail_with_traceback(browser, ai_logged_in_new_shorter, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_autopilot_page.py:20: in ai_logged_in_new_shorter
user_logs_in(browser, email_ai, fullname)
pages/login_page.py:215: in user_logs_in
check_correct_username(browser, correct_username)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="d87397f24f21ab6bca2c4c6b051f1ab9")>
correct_username = 'Automate Promo'
def check_correct_username(browser, correct_username):
"""
Checks if user is logged correctly - checks cor
📸 Failure Screenshot:
⏱️ Duration: 604.38s
❌ Error:
fixturefunc = <function user_redirected_after_video_generation at 0x7f0681574b80>
request = <FixtureRequest for <Function test_cbe07_change_the_intro_for_the_amazon_product_video>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="d71d488c833d96862c7d66fb4c2047f2")>}
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_autopilot_page.py:400: in user_redirected_after_video_generation
bs_fail_with_traceback(browser, user_redirected_after_video_generation, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_autopilot_page.py:398: in user_redirected_after_video_generation
ai_generated_posts_in_planner(browser, 300)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="d71d488c833d96862c7d66fb4c2047f2")>
waiting_time = 300
def ai_generated_posts_in_planner(browser, waiting_time: int):
"""
Verifies if AI posts are visible in Planner
waiting_time (int) = chosen value in seconds
"
📸 Failure Screenshot: