⏱️ Duration: 30.69s
❌ Error:
self = <tests.test_web_general.TestWebPhase1 object at 0x7f89c69e96f0>
login_page = <pages.login_page.LoginPage object at 0x7f89c69e9480>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7f89c69fb3d0>
base_url = 'https://test05.testingpromo.com'
def test_w22_verify_password_changes(
self, login_page, my_account_page, base_url
):
"""
W22 Verify password changes
Uses a dedicated account (email_pass_change) to avoid disrupting main
test accounts. Flow:
1. Login → change password to random_password
2. Sign out → login with random_password (should succeed)
3. Change password back to original
4. Sign out → try to login with random_password (should fail)
"""
original_password = get_password()
page = login_page.page
# Step 1: Change password to random_password
> login_page.login_directly(base_url, email_pass_change, original_password)
tests/test_web_general.py:154:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/login_page.py:116: in login_directly
self.page.wait_for_function(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:12761: in wait_for_function
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_page.py:1151: in wait_for_function
return await self._main_frame.wait_for_function(**locals_to_params(locals()))
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:940: in wait_for_function
await self._channel.send("waitForFunction", self._timeout, params)
/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 0x7f89c69e9c30>
cb = <function Channel.send.<locals>.<lambda> at 0x7f89c5f435b0>
is_interna
📸 Failure Screenshot: