⏱️ Duration: 1.41s
❌ Error:
self = <tests.test_login.TestAuth object at 0x7f6e030f9570>
page = <Page url='https://promo.com/signup'>
login_page = <pages.login_page.LoginPage object at 0x7f6e033e2aa0>
sign_up_page = <pages.sign_up_page.SignUpPage object at 0x7f6e030fafb0>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7f6e030fbc40>
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,
)
tests/test_login.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pages.sign_up_page.SignUpPage object at 0x7f6e030fafb0>
base_url = 'https://promo.com', email = 'promo.auto.delete.7953cad7@promo.com'
full_name = 'Automate Promo', password = '123456789'
def create_account(self, base_url: str, email: str, full_name: str, password: str):
"""
Creates a new account by navigating directly to /signup.
Mirrors: signup_process_steps_email(browser, random_email)
Note: navigates to /signup directly rather than homepage → click header
button, for th
📸 Failure Screenshot: