nightly fixes

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2020-10-14 14:09:01 +02:00
parent 9e0b8e76cf
commit dcd2655860
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
10 changed files with 19 additions and 10 deletions

View File

@ -82,5 +82,6 @@
[::delete-profile/delete-profile @password])
(reset! password nil))
:theme :negative
:accessibility-label :delete-profile-confirm
:disabled ((complement valid-password?) @password)}
(i18n/label :t/delete-profile)]]])]]))))

View File

@ -54,11 +54,13 @@ class NetworkApi(object):
method = self.network_url + 'module=account&action=balance&address=0x%s&tag=latest&apikey=%s' % (address , self.api_key)
for i in range(5):
try:
return int(requests.request('GET', method, headers=self.headers).json()["result"])
self.log('Trying to get balance for %s, attempt %s' % (address, i + 1))
balance = requests.request('GET', method, headers=self.headers).json()["result"]
self.log('Balance is %s Gwei' % balance)
return int(balance)
except JSONDecodeError as e:
self.log(str(e))
time.sleep(5)
pass
def get_latest_block_number(self) -> int:
method = self.network_url + 'module=proxy&action=eth_blockNumber'

View File

@ -503,7 +503,7 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
device_1_chat.chat_message_input.click()
for chat in device_1_chat, device_2_chat, device_3_chat:
if not chat.play_pause_audio_message_button.is_element_displayed():
self.errors.append('Audio message is not shown in chat after sending for sender')
self.errors.append('Audio message is not shown in chat after sending!')
device_1.just_fyi('Send sticker to group chat and verify it on all devices')
device_1_chat.profile_button.click()

View File

@ -157,7 +157,7 @@ class TestBrowsing(SingleDeviceTestCase):
home_view = sign_in.create_user()
dapp_view = home_view.dapp_tab_button.click()
browsing_view = dapp_view.open_url('google.com')
browsing_view.cross_icon.click()
browsing_view.back_button.click()
dapp_view = DappsView(self.driver)
browser_entry = dapp_view.remove_browser_entry_long_press('Google')
home_view.relogin()
@ -166,7 +166,7 @@ class TestBrowsing(SingleDeviceTestCase):
self.errors.append('The browser entry is present after re-login')
for entry in ('google.com', 'status.im'):
browsing_view = dapp_view.open_url(entry)
browsing_view.cross_icon.click()
browsing_view.back_button.click()
dapp_view.remove_browser_entry_long_press('status', clear_all=True)
home_view.relogin()
home_view.dapp_tab_button.click()

View File

@ -514,7 +514,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
send_transaction.just_fyi('Set contact')
send_transaction.chose_recipient_button.click()
send_transaction.element_by_text('Contacts').click()
send_transaction.element_by_text('Contacts').scroll_and_click()
send_transaction.element_by_text(nickname).scroll_and_click()
send_transaction.recipient_done.click()
if send_transaction.enter_recipient_address_text.text != \
@ -530,6 +530,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
send_transaction.ok_button.click()
send_transaction.element_by_text('↑ 2 STT').scroll_and_click()
send_transaction.add_to_favorites(recent_add_to_fav_name)
wallet_view.element_by_text('Recent').click()
send_transaction.just_fyi('Scan code, add it to favorites and recheck that it is preserved')
send_transaction.scan_qr_code_button.click()

View File

@ -59,7 +59,7 @@ class AbstractTestCase:
desired_caps['build'] = pytest_config_global['build']
desired_caps['name'] = test_suite_data.current_test.name
desired_caps['platformName'] = 'Android'
desired_caps['appiumVersion'] = '1.16.0'
desired_caps['appiumVersion'] = '1.18.1'
desired_caps['platformVersion'] = '10.0'
desired_caps['deviceName'] = 'Android GoogleAPI Emulator'
desired_caps['deviceOrientation'] = "portrait"

View File

@ -127,6 +127,7 @@ class DappsView(BaseView):
self.enter_url_editbox.click()
self.enter_url_editbox.send_keys(url)
self.confirm()
self.progress_bar.wait_for_invisibility_of_element(50)
return self.get_base_web_view()
def get_browser_entry(self, name):

View File

@ -573,7 +573,7 @@ class DeleteMyProfilePasswordInput(BaseEditBox):
class DeleteProfileButton(BaseButton):
def __init__(self, driver):
super(DeleteProfileButton, self).__init__(driver)
self.locator = self.Locator.xpath_selector('(//*[@text="Delete profile"])[2]')
self.locator = self.Locator.accessibility_id('delete-profile-confirm')
class UseMobileDataToggle(BaseButton):
def __init__(self, driver):

View File

@ -69,6 +69,10 @@ class ChooseRecipientButton(BaseButton):
super(ChooseRecipientButton, self).__init__(driver)
self.locator = self.Locator.accessibility_id('choose-recipient-button')
def click(self):
self.click_until_presence_of_element(AccountsButton(self.driver))
return self.navigate()
class AccountsButton(BaseButton):
def __init__(self, driver):

View File

@ -262,7 +262,7 @@ class SignInView(BaseView):
def create_user(self, password=common_password, keycard=False, enable_notifications=False):
self.get_started_button.click()
self.generate_key_button.click_until_presence_of_element(self.next_button)
self.next_button.click()
self.next_button.click_until_absense_of_element(self.element_by_text_part('Choose a chat name'))
if keycard:
keycard_flow = self.keycard_storage_button.click()
keycard_flow.confirm_pin_and_proceed()