⏱️ Duration: 201.54s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="7c0fbe5fc2425d3024a5d3d9fbf7704c")>
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="7c0fbe5fc2425d3024a5d3d9fbf7704c")>, ('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 0x7fd956350a80>('wide')
E + where <built-in method get of dict object at 0x7fd956350a80> = {'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 0x7fd956522680>
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="7c0fbe5fc2425d3024a5d3d9fbf7704c")>, '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: