mirror of
https://github.com/status-im/desktop-qa-automation.git
synced 2025-02-24 10:08:22 +00:00
- added verify_account_popup_present() function - added verify_profile_view_present() function - added verify_emojihash_view_present() Mostly done as an attempt to fix flaky navigation in new keys test. (see https://ci.status.im/job/status-desktop/job/e2e/job/prs/1136/allure/#suites/c48b221cdcfecf89e1eb75d0b8e79672/f41783642f763391/) So the test clicks Next button twice and then thinks he is already on next screen when it is not. So i added a verification for Profile and Emoji screens that when we returning these views, we first check screen titles and if they are correct - then proceed further Same function is added for Add Account popup earlier, i forgot to add a call for it Uncomment the test of adding watch only address, related issue seems to be fixed
30 lines
1.7 KiB
Python
30 lines
1.7 KiB
Python
from collections import namedtuple
|
|
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, 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'
|
|
|
|
|
|
class OnboardingScreensHeaders(Enum):
|
|
YOUR_EMOJIHASH_AND_IDENTICON_RING_SCREEN_TITLE = 'Your emojihash and identicon ring'
|
|
YOUR_PROFILE_SCREEN_TITLE = 'Your profile'
|
|
|
|
|
|
password_strength_elements = namedtuple('Password_Strength_Elements',
|
|
['strength_indicator', 'strength_color', 'strength_messages'])
|
|
very_weak_lower_elements = password_strength_elements('Very weak', '#ff2d55', ['• Lower case'])
|
|
very_weak_upper_elements = password_strength_elements('Very weak', '#ff2d55', ['• Upper case'])
|
|
very_weak_numbers_elements = password_strength_elements('Very weak', '#ff2d55', ['• Numbers'])
|
|
very_weak_symbols_elements = password_strength_elements('Very weak', '#ff2d55', ['• Symbols'])
|
|
weak_elements = password_strength_elements('Weak', '#fe8f59', ['• Numbers', '• Symbols'])
|
|
so_so_elements = password_strength_elements('So-so', '#ffca0f', ['• Lower case', '• Numbers', '• Symbols'])
|
|
good_elements = password_strength_elements('Good', '#9ea85d',
|
|
['• Lower case', '• Upper case', '• Numbers', '• Symbols'])
|
|
great_elements = password_strength_elements('Great', '#4ebc60',
|
|
['• Lower case', '• Upper case', '• Numbers', '• Symbols'])
|