Test Results (13 tests)
⏱️ Duration: 522.38s
❌ Error:
fixturefunc = <function opens_planner at 0x7faa356acdc0>
request = <FixtureRequest for <Function test_pub02_verify_publish_yt_longer_60_sec>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="df4d02b6314168f62da3894dacfb78ff")>}
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:62: in opens_planner
bs_fail_with_traceback(browser, opens_planner, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_planner_page.py:60: in opens_planner
verify_user_on_planner(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="df4d02b6314168f62da3894dacfb78ff")>
waiting = 10
def verify_user_on_planner(browser, waiting=10):
"""
Verifies if we are on Planner page
"""
> assert is_visible(browser, MY_CAL_CURRENT_DAY, waiting)
E AssertionError
pages/planner_page.py:20: AssertionError
📸 Failure Screenshot:
⏱️ Duration: 582.28s
❌ Error:
fixturefunc = <function opens_planner at 0x7faa356acdc0>
request = <FixtureRequest for <Function test_pub03_verify_publish_tiktok>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="caf63dbabf77746b99475b0c865e52d3")>}
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:62: in opens_planner
bs_fail_with_traceback(browser, opens_planner, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_planner_page.py:60: in opens_planner
verify_user_on_planner(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="caf63dbabf77746b99475b0c865e52d3")>
waiting = 10
def verify_user_on_planner(browser, waiting=10):
"""
Verifies if we are on Planner page
"""
> assert is_visible(browser, MY_CAL_CURRENT_DAY, waiting)
E AssertionError
pages/planner_page.py:20: AssertionError
📸 Failure Screenshot:
⏱️ Duration: 366.42s
❌ Error:
fixturefunc = <function logged_in_new_shorter_social at 0x7faa358b9fc0>
request = <FixtureRequest for <Function test_pub05_verify_post_duplication_and_deletion>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="62e3afa1028638c66546855d0799aa12")>}
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:524: in logged_in_new_shorter_social
bs_fail_with_traceback(browser, logged_in_new_shorter_social, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_publisher_page.py:522: in logged_in_new_shorter_social
user_logs_in(browser, email_socials, fullname)
pages/login_page.py:215: in user_logs_in
check_correct_username(browser, correct_username)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="62e3afa1028638c66546855d0799aa12")>
correct_username = 'Automate Promo'
def check_correct_username(browser, correct_username):
"""
Checks if user is logged correctly - checks corr
📸 Failure Screenshot:
⏱️ Duration: 300.48s
❌ Error:
fixturefunc = <function opens_planner at 0x7faa356acdc0>
request = <FixtureRequest for <Function test_pub09_download_a_file_from_planner_preview>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="58e6e9598ab878cd56d25dc3421ce0bb")>}
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:62: in opens_planner
bs_fail_with_traceback(browser, opens_planner, e)
helpers/common_helpers.py:815: in bs_fail_with_traceback
raise exception
tests/test_planner_page.py:60: in opens_planner
verify_user_on_planner(browser)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="58e6e9598ab878cd56d25dc3421ce0bb")>
waiting = 10
def verify_user_on_planner(browser, waiting=10):
"""
Verifies if we are on Planner page
"""
> assert is_visible(browser, MY_CAL_CURRENT_DAY, waiting)
E AssertionError
pages/planner_page.py:20: AssertionError
📸 Failure Screenshot:
⏱️ Duration: 704.96s
❌ Error:
fixturefunc = <function verify_ratio_exists at 0x7faa358baa70>
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="a3fbd21e93a440904f5cefd8bcb7a9b3")>, '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:815: in bs_fail_with_traceback
raise exception
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="a3fbd21e93a440904f5cefd8bcb7a9b3")>
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:
⏱️ Duration: 112.95s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="3dfaff28977a09911ed723103e7d8bb0")>
@then('I assert close the button closes the pop-up')
def close_learn_popup(browser):
try:
> do_click(browser, AI_CLOSE_CROP_MODAL)
tests/test_assertion.py:427:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
helpers/common_helpers.py:200: in do_click
WebDriverWait(browser, sec, poll_frequency=0.4).until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="3dfaff28977a09911ed723103e7d8bb0")>
method = <function element_to_be_clickable.<locals>._predicate at 0x7faa337a75b0>
message = ''
def until(self, method: Callable[[WebDriver], Union[Literal[False], T]], message: str = "") -> T:
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.
:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None
end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, "screen", None)
stacktrace = getattr(exc, "stacktrace", None)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message:
E Stacktrace:
E #0 0x582240b0c0ca <unknown>
E #1 0x5822407d82b0 <unknown>
E #
📸 Failure Screenshot: