⏱️ Duration: 43.07s
❌ Error:
self = <tests.test_login.TestAuth object at 0x7f158a6064d0>
page = <Page url='https://promo.com/'>
login_page = <pages.login_page.LoginPage object at 0x7f158a605c00>
sign_up_page = <pages.sign_up_page.SignUpPage object at 0x7f158a5eb7c0>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7f158a5ea680>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_au04_try_to_sign_in_with_deleted_account(
self, page, login_page, sign_up_page, my_account_page, base_url
):
"""
Au04 Try to sign in with the deleted account - release
Feature scenario:
Given I generate a random email for sign up
When I create a new account new auth
And I close onboarding wizard
When I go to my account
Then I delete my account new
When I click on login button
When I provide credentials to the deleted account
When I press the login button new
Then I should get error "Your email or password is incorrect"
"""
deleted_email = f"promo.auto.delete.{uuid.uuid4().hex[:8]}@promo.com"
# Create account
sign_up_page.create_account(
base_url=base_url,
email=deleted_email,
full_name=fullname,
password=random_password,
)
sign_up_page.close_onboarding()
# Delete account
my_account_page.go_to_my_account_direct(base_url)
> my_account_page.delete_account(password=random_password)
tests/test_login.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/my_account_page.py:97: in delete_account
self.page.locator(self.HOMEPAGE_AI_INPUT).wait_for(state="visible", timeout=self.T_UPLOAD)
/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 sel
📸 Failure Screenshot: