⏱️ Duration: 346.39s
❌ Error:
fixturefunc = <function verify_ratio_exists at 0x7f2c0d93c0d0>
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="f50855209d47f3750e36d89a635de329")>, 'orientation': 'wide'}
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:606: in verify_ratio_exists
bs_fail_with_traceback(browser, verify_ratio_exists, e)
helpers/common_helpers.py:789: in bs_fail_with_traceback
raise exception
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="f50855209d47f3750e36d89a635de329")>
orientation = 'wide'
@then(parsers.parse('I verify in publisher that {orientation} ratio is already added'))
def verify_ratio_exists(browser, orientation):
ratios = {
"wide": PUBLISHER_ADD_WIDE_RATIO,
"square": PUBLISHER_ADD_SQUARE_RATIO,
"vertical": PUBLISHER_ADD_VERTICAL_RATIO
}
try:
>
📸 Failure Screenshot: