chore: fix missing dot validation for display name
This commit is contained in:
parent
65dd9c542f
commit
1963553f39
|
@ -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)
|
||||
|
|
|
@ -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}'):
|
||||
|
|
Loading…
Reference in New Issue