e2e: nightly 13/07 fixes

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2021-07-13 14:51:32 +02:00
parent 0fce3e60f5
commit 0f2bd9c6f1
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
4 changed files with 7 additions and 4 deletions

View File

@ -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()

View File

@ -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():

View File

@ -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)

View File

@ -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))