⏱️ Duration: 155.47s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="f65d5e01f7d3109296372658db9d8d87")>
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:596: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function ai_open_preview at 0x7f8f78b98ee0>
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="f65d5e01f7d3109296372658db9d8d87")>, '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)
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(bro
📸 Failure Screenshot: