chore: update password range and make change password test required for PRs
This commit is contained in:
parent
b052416666
commit
3623807f62
|
@ -5,7 +5,7 @@ from enum import Enum
|
|||
class OnboardingMessages(Enum):
|
||||
WRONG_LOGIN_LESS_LETTERS = 'Display Names must be at least 5 character(s) long'
|
||||
WRONG_LOGIN_SYMBOLS_NOT_ALLOWED = 'Invalid characters (use A-Z and 0-9, hyphens and underscores only)'
|
||||
WRONG_PASSWORD = 'Password must be at least 10 characters long'
|
||||
WRONG_PASSWORD = 'Minimum 10 character(s)'
|
||||
PASSWORDS_DONT_MATCH = "Passwords don't match"
|
||||
PASSWORD_INCORRECT = 'Password incorrect'
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ def random_name_string():
|
|||
def random_password_string():
|
||||
return ''.join((random.choice(
|
||||
string.ascii_letters + string.digits + string.punctuation)
|
||||
for _ in range(10, 65))
|
||||
for _ in range(10, 101))
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -18,8 +18,7 @@ pytestmark = marks
|
|||
'Change the password and login with new password')
|
||||
@pytest.mark.case(703005)
|
||||
@pytest.mark.parametrize('user_account', [RandomUser()])
|
||||
# @pytest.mark.skip(reason='https://github.com/status-im/status-desktop/issues/15178')
|
||||
# @pytest.mark.critical
|
||||
@pytest.mark.critical
|
||||
# TODO: follow up on https://github.com/status-im/status-desktop/issues/13013
|
||||
def test_change_password_and_login(aut: AUT, main_screen: MainWindow, user_account):
|
||||
with step('Open change password view'):
|
|
@ -116,7 +116,7 @@ def test_sign_up_with_wrong_password_length(user_account, error: str, aut: AUT,
|
|||
|
||||
with step('Verify that button Create password is disabled and correct error appears'):
|
||||
assert create_password_view.is_create_password_button_enabled is False
|
||||
assert create_password_view.password_error_message == error
|
||||
assert str(create_password_view.password_error_message) == error
|
||||
|
||||
|
||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/702994',
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
import pytest
|
||||
from .. import marks
|
||||
|
||||
marks = [pytest.mark.settings_password, marks]
|
Loading…
Reference in New Issue