Skip to content

Commit

Permalink
chore(@e2e): add small time sleep and fix indicator reference
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiyaig authored and caybro committed Jan 14, 2025
1 parent 07640e4 commit 866a1a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/e2e/gui/objects_map/onboarding_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
mainWindow_Create_password_StatusButton = {"checkable": False, "container": mainWindow_CreatePasswordView, "objectName": "onboardingCreatePasswordButton", "type": "StatusButton", "visible": True}
mainWindow_view_PasswordView = {"container": statusDesktop_mainWindow, "id": "view", "type": "PasswordView", "unnamed": 1, "visible": True}
mainWindow_RowLayout = {"container": statusDesktop_mainWindow, "type": "PassIncludesIndicator", "unnamed": 1, "visible": True}
mainWindow_ComponentIndicator = {"container": statusDesktop_mainWindow, "type": "PasswordComponentIndicator", "unnamed": 1, "visible": True}
mainWindow_strengthInditactor_StatusPasswordStrengthIndicator = {"container": statusDesktop_mainWindow, "id": "strengthInditactor", "type": "StatusPasswordStrengthIndicator", "unnamed": 1, "visible": True}
mainWindow_show_icon_StatusIcon = {"container": statusDesktop_mainWindow, "objectName": "show-icon", "type": "StatusIcon", "visible": True}
mainWindow_hide_icon_StatusIcon = {"container": statusDesktop_mainWindow, "objectName": "hide-icon", "type": "StatusIcon", "visible": True}
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/gui/screens/onboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def __init__(self):

@allure.step('Open seed phrase input view')
def open_seed_phrase_input_view(self):
time.sleep(0.5)
self._import_seed_phrase_button.click()
return SeedPhraseInputView().wait_until_appears()

Expand Down Expand Up @@ -450,6 +451,7 @@ def __init__(self):
self._strength_indicator = QObject(
onboarding_names.mainWindow_strengthInditactor_StatusPasswordStrengthIndicator)
self._indicator_panel_object = QObject(onboarding_names.mainWindow_RowLayout)
self.password_component_indicator = QObject(onboarding_names.mainWindow_ComponentIndicator)
self._show_icon = QObject(onboarding_names.mainWindow_show_icon_StatusIcon)
self._hide_icon = QObject(onboarding_names.mainWindow_hide_icon_StatusIcon)

Expand Down Expand Up @@ -483,7 +485,7 @@ def green_indicator_messages(self) -> typing.List[str]:
messages = []
color = ColorCodes.GREEN.value

for item in driver.findAllObjects(self._indicator_panel_object.real_name):
for item in driver.findAllObjects(self.password_component_indicator.real_name):
if str(item.color.name) == color:
messages.append(str(item.text))
return messages
Expand Down

0 comments on commit 866a1a6

Please sign in to comment.