From e366587e8fa951d745cc1735f2a5198ca4031510 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Fri, 10 Jul 2020 16:39:26 +0200 Subject: [PATCH] e2e fix Signed-off-by: andrey --- .../atomic/account_management/test_create_account.py | 8 +++++--- test/appium/tests/atomic/chats/test_public.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/appium/tests/atomic/account_management/test_create_account.py b/test/appium/tests/atomic/account_management/test_create_account.py index 26e70f38b7..bc24b99e82 100644 --- a/test/appium/tests/atomic/account_management/test_create_account.py +++ b/test/appium/tests/atomic/account_management/test_create_account.py @@ -60,15 +60,17 @@ class TestCreateAccount(SingleDeviceTestCase): for text in texts: if not home_view.element_by_text(text).is_element_displayed(): self.errors.append("'%s' text is not shown" % text) - sign_in.element_by_text("#status").click() - sign_in.back_button.click() + for chat in ('#status', '#crypto'): + sign_in.element_by_text(chat).click() + sign_in.back_button.click() profile_view = home_view.profile_button.click() shown_username = profile_view.default_username_text.text if shown_username != username: self.errors.append("Default username '%s' doesn't match '%s'" % (shown_username, username)) profile_view.home_button.click() home_view.cross_icon_iside_welcome_screen_button.click() - home_view.delete_chat_long_press("#status") + for chat in ('#status', '#crypto'): + home_view.delete_chat_long_press(chat) if home_view.element_by_text(texts[0]).is_element_displayed(): self.errors.append("'%s' text is shown, but welcome view was closed" % texts[0]) home_view.relogin() diff --git a/test/appium/tests/atomic/chats/test_public.py b/test/appium/tests/atomic/chats/test_public.py index bd8c2eb057..ba33f7fad4 100644 --- a/test/appium/tests/atomic/chats/test_public.py +++ b/test/appium/tests/atomic/chats/test_public.py @@ -30,7 +30,7 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase): home_1.plus_button.click_until_presence_of_element(home_1.join_public_chat_button) home_1.join_public_chat_button.click() - preselected_chats = ['#status', '#introductions', '#chitchat', '#crypto', '#tech', '#music', '#movies', '#support'] + preselected_chats = ['#status', '#chitchat', '#defi', '#crypto', '#markets', '#dap-ps'] for chat in preselected_chats: if not home_1.element_by_text(chat).is_element_displayed(): self.errors.append("'%s' text is not in the list of preselected chats" % chat)