mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 01:27:25 +00:00
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(
|
pytest.param(
|
||||||
''.join((random.choice(
|
''.join((random.choice(
|
||||||
string.ascii_letters + string.digits + random.choice('_- '))
|
string.ascii_letters + string.digits + random.choice('_- '))
|
||||||
for i in range(5, 21))
|
for i in range(5, 25))
|
||||||
).strip(' '),
|
).strip(' '),
|
||||||
''.join((random.choice(
|
''.join((random.choice(
|
||||||
string.ascii_letters + string.digits + string.punctuation)
|
string.ascii_letters + string.digits + string.punctuation)
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
import random
|
||||||
|
import string
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import allure
|
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.mark.parametrize('user_name, error', [
|
||||||
pytest.param('Athl', OnboardingMessages.WRONG_LOGIN_LESS_LETTERS.value),
|
pytest.param('Athl', OnboardingMessages.WRONG_LOGIN_LESS_LETTERS.value),
|
||||||
pytest.param('Gra', 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):
|
def test_sign_up_with_wrong_name(keys_screen, user_name: str, error: str):
|
||||||
with step(f'Input name {user_name}'):
|
with step(f'Input name {user_name}'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user