From 875e8869b588d857fb9eacb11c6ebdf5ae2d7737 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Thu, 21 Dec 2023 10:59:41 +0300 Subject: [PATCH] chore: add randomisation for display name generation --- .../tests/onboarding/test_onboarding_generate_new_keys.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py b/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py index 0416054f28..e58ef6361a 100755 --- a/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py +++ b/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py @@ -1,5 +1,7 @@ import logging import os +import random +import string import allure import pytest @@ -31,7 +33,10 @@ def keys_screen(main_window) -> KeysView: @pytest.mark.critical @pytest.mark.parametrize('user_name, password, user_image, zoom, shift', [ pytest.param( - '_1Test-User', + ''.join((random.choice( + string.ascii_letters + string.digits + string.whitespace + random.choice('_-')) + for i in range(5, 21)) + ), '*P@ssw0rd*', 'tv_signal.jpeg', 5,