From 0f2bd9c6f11e33ce86d0a0385f434bea18739d81 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Tue, 13 Jul 2021 14:51:32 +0200 Subject: [PATCH] e2e: nightly 13/07 fixes Signed-off-by: Churikova Tetiana --- test/appium/tests/atomic/chats/test_communities.py | 1 + test/appium/tests/atomic/chats/test_group_chat.py | 5 ++--- test/appium/views/home_view.py | 2 +- test/appium/views/wallet_view.py | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test/appium/tests/atomic/chats/test_communities.py b/test/appium/tests/atomic/chats/test_communities.py index a935b8e1df..6b701f85d6 100644 --- a/test/appium/tests/atomic/chats/test_communities.py +++ b/test/appium/tests/atomic/chats/test_communities.py @@ -7,6 +7,7 @@ class TestCommunitiesMultipleDevices(MultipleDeviceTestCase): @marks.testrail_id(695842) @marks.medium + @marks.flaky def test_creating_community_accept_membership(self): self.create_drivers(2) home_1, home_2 = SignInView(self.drivers[0]).create_user(), SignInView(self.drivers[1]).create_user() diff --git a/test/appium/tests/atomic/chats/test_group_chat.py b/test/appium/tests/atomic/chats/test_group_chat.py index 3a95a418fe..d1e34f9271 100644 --- a/test/appium/tests/atomic/chats/test_group_chat.py +++ b/test/appium/tests/atomic/chats/test_group_chat.py @@ -298,10 +298,9 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase): device_2_options.view_profile_button.click() chat_1.set_nickname(nickname) if not chat_1.element_by_text(nickname).is_element_displayed(): - self.errors.append('Nickname is not shown in profile view after setting from froup info') + self.errors.append('Nickname is not shown in profile view after setting from group info') chat_1.close_button.click() - if not chat_1.element_by_text(nickname).is_element_displayed(): - self.errors.append('Nickname is not shown in group info view after setting from froup info') + chat_1.element_by_text(nickname).scroll_to_element() chat_1.close_button.click() message_text = '%s %s' % (nickname, additional_text) if not chat_1.chat_element_by_text(message_text).is_element_displayed(): diff --git a/test/appium/views/home_view.py b/test/appium/views/home_view.py index 958c749fdd..1d809ee6b6 100644 --- a/test/appium/views/home_view.py +++ b/test/appium/views/home_view.py @@ -14,7 +14,7 @@ class ChatButton(Button): class ChatElement(SilentButton): - def __init__(self, driver, username_part, community): + def __init__(self, driver, username_part, community=False): self.username = username_part self.community = community super().__init__(driver, xpath="//*[@content-desc='chat-name-text'][starts-with(@text,'%s')]/.." % username_part) diff --git a/test/appium/views/wallet_view.py b/test/appium/views/wallet_view.py index 2163e6f155..ea5dc40cc1 100644 --- a/test/appium/views/wallet_view.py +++ b/test/appium/views/wallet_view.py @@ -152,6 +152,8 @@ class WalletView(BaseView): if counter >= wait_time: self.driver.fail('Balance %s %s is not changed during %s seconds!' % (asset, initial_balance,wait_time)) elif self.asset_by_name(asset).is_element_present() and self.get_asset_amount_by_name(asset) == initial_balance: + if scan_tokens: + self.scan_tokens() if not self.transaction_history_button.is_element_displayed(): self.wallet_account_by_name(self.status_account_name).click() if (counter/60).is_integer(): @@ -164,6 +166,7 @@ class WalletView(BaseView): elif not self.asset_by_name(asset).is_element_present(10): if scan_tokens: self.scan_tokens() + self.swipe_up() counter += 10 time.sleep(10) self.driver.info('*Waiting %s seconds for %s to display asset*' % (counter, asset))