Test Results (23 tests)
⏱️ Duration: 343.09s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="3764dd215fc223b5c01de9d4b84479f2")>
@then('I verify that video can be saved')
def save_video(browser):
try:
ai_chat_save_video(browser)
assert is_invisible(browser, AICHAT_CHAT_SECTION, 15)
> assert is_visible(browser, PLANNER_PREVIEW_POST_DATE)
E assert False
E + where False = is_visible(<selenium.webdriver.remote.webdriver.WebDriver (session="3764dd215fc223b5c01de9d4b84479f2")>, ('xpath', '//*[@data-qaid="post_preview_date"]'))
tests/test_assertion.py:419: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function save_video at 0x7f59ed891090>
request = <FixtureRequest for <Function test_cbe01_cbe_service_chains_sanity[remove_scene]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="3764dd215fc223b5c01de9d4b84479f2")>}
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:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="3764dd215fc223b5c01de9d4b84479f
📸 Failure Screenshot:
⏱️ Duration: 334.33s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="65baa332fb161b7c01aef1fbecfa513f")>
@then('I verify that video can be saved')
def save_video(browser):
try:
ai_chat_save_video(browser)
assert is_invisible(browser, AICHAT_CHAT_SECTION, 15)
> assert is_visible(browser, PLANNER_PREVIEW_POST_DATE)
E assert False
E + where False = is_visible(<selenium.webdriver.remote.webdriver.WebDriver (session="65baa332fb161b7c01aef1fbecfa513f")>, ('xpath', '//*[@data-qaid="post_preview_date"]'))
tests/test_assertion.py:419: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function save_video at 0x7f59ed891090>
request = <FixtureRequest for <Function test_cbe01_cbe_service_chains_sanity[text_color]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="65baa332fb161b7c01aef1fbecfa513f")>}
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:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="65baa332fb161b7c01aef1fbecfa513f"
📸 Failure Screenshot:
⏱️ Duration: 891.49s
❌ Error:
fixturefunc = <function confirm_upload at 0x7f59ed8d6710>
request = <FixtureRequest for <Function test_cbe04_upload_via_filestack_url[video]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="d826f3cbea046bac711d8e937803c747")>}
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:908: in confirm_upload
bs_fail_with_traceback(browser, confirm_upload, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_autopilot_page.py:906: in confirm_upload
click_upload_button_filestack(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="d826f3cbea046bac711d8e937803c747")>
def click_upload_button_filestack(browser):
"""
Click the upload button in Filestack pop-up
"""
time.sleep(5) # Wait for Filestack to fully load
# Check if button is in an iframe
iframes = browser.find_elements(By.TAG_NAME, "iframe")
if len(iframes) > 0:
📸 Failure Screenshot:
⏱️ Duration: 550.62s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="42f84e5fdf5b5a5a369d9883fd266181")>
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 0x7f59ed91cee0>
request = <FixtureRequest for <Function test_cbe04_upload_via_filestack_url[photo]>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="42f84e5fdf5b5a5a369d9883fd266181")>, 'number': '4'}
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-pa
📸 Failure Screenshot:
⏱️ Duration: 324.30s
❌ Error:
fixturefunc = <function skip_the_educational_video at 0x7f59ed91c4c0>
request = <FixtureRequest for <Function test_cbe07_change_the_intro_for_the_amazon_product_video>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="cd8039fbe748570102dbdd76e384a4ea")>}
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
tests/test_autopilot_page.py:362: in skip_the_educational_video
do_click(browser, AI_GENERATOR_SKIP_VIDEO)
helpers/common_helpers.py:201: in do_click
EC.element_to_be_clickable(by_locator)).click()
venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py:93: in click
self._execute(Command.CLICK_ELEMENT)
venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py:394: in _execute
return self._parent.execute(command, params)
venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:347: in exe
📸 Failure Screenshot: