chore: fix missing dot validation for display name

This commit is contained in:
Anastasiya Semenkevich 2024-03-28 12:58:37 +03:00 committed by Anastasiya
parent 65dd9c542f
commit 1963553f39
2 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,7 @@ def keys_screen(main_window) -> KeysView:
pytest.param(
''.join((random.choice(
string.ascii_letters + string.digits + random.choice('_- '))
for i in range(5, 21))
for i in range(5, 25))
).strip(' '),
''.join((random.choice(
string.ascii_letters + string.digits + string.punctuation)

View File

@ -1,4 +1,6 @@
import os
import random
import string
import time
import allure
@ -72,7 +74,9 @@ def test_login_with_wrong_password(aut: AUT, keys_screen, main_window, error: st
@pytest.mark.parametrize('user_name, error', [
pytest.param('Athl', OnboardingMessages.WRONG_LOGIN_LESS_LETTERS.value),
pytest.param('Gra', OnboardingMessages.WRONG_LOGIN_LESS_LETTERS.value),
pytest.param('tester3@', OnboardingMessages.WRONG_LOGIN_SYMBOLS_NOT_ALLOWED.value)
pytest.param('tester3@', OnboardingMessages.WRONG_LOGIN_SYMBOLS_NOT_ALLOWED.value),
pytest.param(''.join(random.choice(string.punctuation) for i in range(5, 25)),
OnboardingMessages.WRONG_LOGIN_SYMBOLS_NOT_ALLOWED.value)
])
def test_sign_up_with_wrong_name(keys_screen, user_name: str, error: str):
with step(f'Input name {user_name}'):