Test Results (23 tests)
⏱️ Duration: 583.55s
❌ Error:
fixturefunc = <function verify_media_library at 0x7f83f3671ea0>
request = <FixtureRequest for <Function test_cbe03_replace_a_clip[stock_video]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="b0bb711cf8456e17a317104f8a8cd1bc")>}
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:859: in verify_media_library
bs_fail_with_traceback(browser, verify_media_library, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="b0bb711cf8456e17a317104f8a8cd1bc")>
@then('Media library should be visible')
def verify_media_library(browser):
try:
> assert is_visible(browser, AICHAT_MEDIA_WINDOW)
E assert False
E + where False = is_visible(<selenium.webdriver.remote.webdriver.WebDriver (session="b0bb711cf8456e17a317104f8a8cd1bc")>, ('xpath', '//div[@class="media-search"]'))
tests/test_autopilot_page.py:857: AssertionErro
📸 Failure Screenshot:
⏱️ Duration: 683.06s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="d2e0179f6391554acf87e7fdc1562e0c")>
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"
E AssertionError: Video is already rendered
pages/autopilot_page.py:597: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function ai_open_preview at 0x7f83f3674ee0>
request = <FixtureRequest for <Function test_cbe03_replace_a_clip[stock_photo]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="d2e0179f6391554acf87e7fdc1562e0c")>, 'number': '3'}
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:420: in ai_open_preview
verify_post_not_rendered_or_not_listicle(browser)
_ _ _ _ _ _ _ _ _ _ _ _
📸 Failure Screenshot:
⏱️ Duration: 695.73s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="c898bbdc97887680bc3b6a8e8896c9de")>
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"
E AssertionError: Video is already rendered
pages/autopilot_page.py:597: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function ai_open_preview at 0x7f83f3674ee0>
request = <FixtureRequest for <Function test_cbe03_replace_a_clip[uploaded_video]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="c898bbdc97887680bc3b6a8e8896c9de")>, 'number': '3'}
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:420: in ai_open_preview
verify_post_not_rendered_or_not_listicle(browser)
_ _ _ _ _ _ _ _ _ _ _
📸 Failure Screenshot:
⏱️ Duration: 567.58s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="a43cbef14375a68bc41441433d4959e4")>
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 0x7f83f3674ee0>
request = <FixtureRequest for <Function test_cbe03_replace_a_clip[uploaded_photo]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="a43cbef14375a68bc41441433d4959e4")>, 'number': '3'}
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-pac
📸 Failure Screenshot:
⏱️ Duration: 816.76s
❌ Error:
fixturefunc = <function upload_video_with_url at 0x7f83f3672200>
request = <FixtureRequest for <Function test_cbe04_upload_via_filestack_url[video]>>
kwargs = {'asset': 'video', 'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="67b9494d869a2251df5f8f75d4691eec")>}
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="67b9494d869a2251df5f8f75d4691eec")>
method = <function visibility_of_element_located.<locals>._predicate at 0x7f83f11eca60>
message = ''
def until(self, method: Callable[[WebDriver], Uni
⏱️ Duration: 868.11s
❌ Error:
fixturefunc = <function upload_video_with_url at 0x7f83f3672200>
request = <FixtureRequest for <Function test_cbe04_upload_via_filestack_url[photo]>>
kwargs = {'asset': 'photo', 'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="c34d1d986822fd5f8b395f0dbd5ff5ac")>}
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="c34d1d986822fd5f8b395f0dbd5ff5ac")>
method = <function visibility_of_element_located.<locals>._predicate at 0x7f83f239e5f0>
message = ''
def until(self, method: Callable[[WebDriver], Uni
⏱️ Duration: 415.64s
❌ Error:
fixturefunc = <function ai_logged_in_new_shorter at 0x7f83f363bc70>
request = <FixtureRequest for <Function test_cbe06_upload_via_filestack_facebook_page>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="380e2f61c1598e08a4922cbb51503e8f")>}
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="380e2f61c1598e08a4922cbb51503e8f")>
correct_username = 'Automate Promo'
def check_correct_username(browser, correct_username):
"""
Checks if user is logged correctly - checks correct username in header.
📸 Failure Screenshot:
⏱️ Duration: 413.44s
❌ Error:
fixturefunc = <function skip_the_educational_video at 0x7f83f36744c0>
request = <FixtureRequest for <Function test_cbe07_change_the_intro_for_the_amazon_product_video>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="54b44dfbd49c55426cacdaf09cbaee47")>}
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:365: in skip_the_educational_video
bs_fail_with_traceback(browser, skip_the_educational_video, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="54b44dfbd49c55426cacdaf09cbaee47")>
@when('I click the skip button')
def skip_the_educational_video(browser):
try:
assert is_visible(browser, AI_GENERATOR_SKIP_VIDEO)
do_click(browser, AI_GENERATOR_SKIP_VIDEO)
> assert is_invisible(browser, AI_GENERATOR_SKIP_VIDEO)
E assert False
E + where False = is_invisible(<selenium.webdriver.remo
📸 Failure Screenshot: