⏱️ Duration: 313.82s
❌ Error:
fixturefunc = <function open_external_share_link at 0x7f9a845c5ea0>
request = <FixtureRequest for <Function test_pub08_verify_external_share_of_regular_scheduled_post>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="1db9864074e9ea4de1dabfe058b43467")>}
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_planner_page.py:816: in open_external_share_link
bs_fail_with_traceback(browser, open_external_share_link, e)
helpers/common_helpers.py:789: in bs_fail_with_traceback
raise exception
tests/test_planner_page.py:814: in open_external_share_link
open_external_share_not_logged(browser)
pages/planner_page.py:702: in open_external_share_not_logged
sign_out_process(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="1db9864074e9ea4de1dabfe058b43467")>
def sign_out_process(browser):
"""
Signs out from Promo account
"""
do_hover(browser, USERNAME_MENU)
assert is_visible(browser, SIGN_OUT_NE
📸 Failure Screenshot:
⏱️ Duration: 199.23s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="c6730fcd350d7d088e402232a29aef75")>
orientation = 'wide'
@then(parsers.parse('I verify in publisher that {orientation} ratio is not created'))
def verify_ratio_not_created(browser, orientation):
ratios = {
"wide": PUBLISHER_ADD_WIDE_RATIO,
"square": PUBLISHER_ADD_SQUARE_RATIO,
"vertical": PUBLISHER_ADD_VERTICAL_RATIO
}
try:
> assert is_visible(browser, ratios.get(orientation))
E assert False
E + where False = is_visible(<selenium.webdriver.remote.webdriver.WebDriver (session="c6730fcd350d7d088e402232a29aef75")>, ('xpath', '//*[@data-qaid="pub-add-video-ratio-wide-0"]'))
E + where ('xpath', '//*[@data-qaid="pub-add-video-ratio-wide-0"]') = <built-in method get of dict object at 0x7f9a8353b680>('wide')
E + where <built-in method get of dict object at 0x7f9a8353b680> = {'square': ('xpath', '//*[data-qaid="pub-add-video-ratio-square-0"]'), 'vertical': ('xpath', '//*[@data-qaid="pub-add-video-ratio-vertical-0"]'), 'wide': ('xpath', '//*[@data-qaid="pub-add-video-ratio-wide-0"]')}.get
tests/test_publisher_page.py:564: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function verify_ratio_not_created at 0x7f9a8455e4d0>
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="c6730fcd350d7d088e402232a29aef75")>, '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:
📸 Failure Screenshot: