⏱️ Duration: 27.21s
❌ Error:
self = <tests.test_web_general.TestWebPhase1 object at 0x7f66bf497d90>
login_page = <pages.login_page.LoginPage object at 0x7f66be840760>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7f66be8413f0>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_w21_verify_incorrect_change_of_password(
self, login_page, my_account_page, base_url
):
"""
W21 Verify incorrect change of password
Tries to save a new password where confirmation doesn't match; expects an
error message in the settings iframe.
"""
login_page.login_directly(base_url, general_mail(), get_password())
my_account_page.go_to_my_account()
> my_account_page.change_password_incorrectly(
current_pass=get_password(),
new_pass=random_password,
confirm_pass="abcde",
)
tests/test_web_general.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/my_account_page.py:121: in change_password_incorrectly
msg_loc.wait_for(state="visible", timeout=self.T_LOAD)
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:394: in wait_for_selector
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:76: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7f66bf495930>
cb = <function Channel.send.<locals>.<lambda> at 0x7f66be84ecb0>
is_internal = False, title = None
async def wrap_api_call(
self, cb: Callable[[], Any], is_internal: bool = False, title: str = None
) -> Any:
📸 Failure Screenshot: