From 9ea888891c3bdb350de59961fc9628e4f2440cd0 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Fri, 29 Dec 2023 13:29:42 +0300 Subject: [PATCH] chore: add another verification which will take a bit of time so the UI wont be frozen --- test/e2e/gui/screens/community.py | 2 +- test/e2e/gui/screens/onboarding.py | 4 ++-- .../e2e/tests/onboarding/test_onboarding_generate_new_keys.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/e2e/gui/screens/community.py b/test/e2e/gui/screens/community.py index ed6f844251..720e54a45c 100644 --- a/test/e2e/gui/screens/community.py +++ b/test/e2e/gui/screens/community.py @@ -290,7 +290,7 @@ class LeftPanel(QObject): self._channel_or_category_button.click() try: self._create_category_menu_item.click() - return NewCategoryPopup().wait_until_appears() + return NewCategoryPopup() except Exception as ex: if attempts: self.open_create_category_popup(attempts - 1) diff --git a/test/e2e/gui/screens/onboarding.py b/test/e2e/gui/screens/onboarding.py index 7948605ca8..1758a47014 100755 --- a/test/e2e/gui/screens/onboarding.py +++ b/test/e2e/gui/screens/onboarding.py @@ -313,8 +313,8 @@ class YourProfileView(OnboardingView): def next(self, attempts: int = 2) -> 'YourEmojihashAndIdenticonRingView': self._next_button.click() try: - return YourEmojihashAndIdenticonRingView().wait_until_appears() - except AssertionError as err: + return YourEmojihashAndIdenticonRingView() + except Exception as err: if attempts: return self.next(attempts - 1) else: 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 7faad1b2d3..887deb59f9 100755 --- a/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py +++ b/test/e2e/tests/onboarding/test_onboarding_generate_new_keys.py @@ -65,13 +65,14 @@ def test_generate_new_keys(main_window, keys_screen, user_name: str, password, u # TODO: find a way to verify the picture is there (changed to the custom one) assert profile_view.get_profile_image is not None, f'Profile picture was not set / applied' assert profile_view.is_identicon_ring_visible, f'Identicon ring is not present when it should' + assert profile_view.is_next_button_enabled is True, \ + f'Next button is not enabled on profile screen' with step('Open emojihash and identicon ring profile screen and capture the details'): details_view = profile_view.next() chat_key = details_view.get_chat_key emoji_hash_public_key = details_view.get_emoji_hash assert details_view.is_identicon_ring_visible, f'Identicon ring is not present when it should' - details_view.back().next() with step('Open password set up view, fill in the form and click back'): create_password_view = details_view.next()