chore: update error message

Error message has been changed in ff9062a1b0 (diff-4ac30c280b7ceca7b505ab0551b9e009295aae3147253c43ae8821e9d6c0ed69R682)
This commit is contained in:
Anastasiya Semenkevich 2024-01-09 10:52:40 +03:00 committed by Anastasiya
parent 8321066a63
commit 8c38cb1616
3 changed files with 9 additions and 7 deletions

View File

@ -4,7 +4,7 @@ from enum import Enum
class OnboardingMessages(Enum):
WRONG_LOGIN_LESS_LETTERS = 'Username must be at least 5 character(s)'
WRONG_LOGIN_SYMBOLS_NOT_ALLOWED = 'Only letters, numbers, underscores, whitespaces and hyphens allowed'
WRONG_LOGIN_SYMBOLS_NOT_ALLOWED = 'Only letters, numbers, underscores, periods, whitespaces and hyphens allowed'
WRONG_PASSWORD = 'Password must be at least 10 characters long'
PASSWORDS_DONT_MATCH = "Passwords don't match"
PASSWORD_INCORRECT = 'Password incorrect'

View File

@ -28,9 +28,10 @@ def find_process_by_port(port: int) -> typing.List[int]:
def find_free_port(start: int, step: int):
while find_process_by_port(start):
start+=step
start += step
return start
@allure.step('Kill process')
def kill_process(pid, sig: signal.Signals = signal.SIGKILL):
LOG.debug('Sending %s to %d process', sig.name, pid)
@ -40,6 +41,7 @@ def kill_process(pid, sig: signal.Signals = signal.SIGKILL):
LOG.error('Failed to find process %d: %s', pid, err)
raise err
@allure.step('Kill process with retries')
def kill_process_with_retries(pid, sig: signal.Signals = signal.SIGTERM, attempts: int = 3):
LOG.debug('Killing process: %d', pid)
@ -61,7 +63,8 @@ def kill_process_with_retries(pid, sig: signal.Signals = signal.SIGTERM, attempt
else:
return
raise RuntimeError('Failed to kill proicess: %d' % pid)
raise RuntimeError('Failed to kill process: %d' % pid)
@allure.step('System execute command')
def execute(
@ -74,6 +77,7 @@ def execute(
process = subprocess.Popen(command, shell=shell, stderr=stderr, stdout=stdout)
return process.pid
@allure.step('System run command')
def run(
command: list,

View File

@ -29,7 +29,6 @@ pytestmark = marks
pytest.param(True, 'Ether', 'Dai Stablecoin', '10', 'viewOnly', '#general', '10 ETH', '10 DAI', 'View only'),
pytest.param(False, False, False, False, 'becomeAdmin', False, False, False, 'Become an admin')
])
def test_adding_permissions(main_screen: MainWindow, params, checkbox_state: bool, first_asset, second_asset, amount,
allowed_to: str, in_channel, asset_title, second_asset_title, allowed_to_title: str):
main_screen.create_community(params)
@ -62,8 +61,7 @@ def test_adding_permissions(main_screen: MainWindow, params, checkbox_state: boo
if allowed_to_title is not False:
assert driver.waitFor(lambda: allowed_to_title in permissions_settings.get_is_allowed_tags_titles())
if in_channel is False:
assert driver.waitFor(lambda: params['name'] in permissions_settings.get_in_community_in_channel_tags_titles())
assert driver.waitFor(
lambda: params['name'] in permissions_settings.get_in_community_in_channel_tags_titles())
if in_channel:
assert driver.waitFor(lambda: in_channel in permissions_settings.get_in_community_in_channel_tags_titles())