diff --git a/test/appium/support/api/network_api.py b/test/appium/support/api/network_api.py index 6424484335..6c162cf185 100644 --- a/test/appium/support/api/network_api.py +++ b/test/appium/support/api/network_api.py @@ -12,6 +12,7 @@ class NetworkApi(object): def __init__(self): self.network_url = 'http://api-%s.etherscan.io/api?' % pytest.config.getoption('network') self.faucet_url = 'https://faucet-ropsten.status.im/donate' + self.faucet_backup_url = 'https://faucet.ropsten.be/donate' self.chat_bot_url = 'http://offsite.chat:8099' def get_transactions(self, address: str) -> List[dict]: @@ -102,10 +103,14 @@ class NetworkApi(object): def faucet(self, address): return requests.request('GET', '%s/0x%s' % (self.faucet_url, address)).json() + def faucet_backup(self, address): + return requests.request('GET', '%s/0x%s' % (self.faucet_backup_url, address)).json() + def get_donate(self, address, wait_time=300): initial_balance = self.get_balance(address) counter = 0 if initial_balance < 1000000000000000000: + self.faucet_backup(address) response = self.faucet(address) while True: if counter >= wait_time: diff --git a/test/appium/views/web_views/status_test_dapp.py b/test/appium/views/web_views/status_test_dapp.py index 4bc1261a9c..94166f2233 100644 --- a/test/appium/views/web_views/status_test_dapp.py +++ b/test/appium/views/web_views/status_test_dapp.py @@ -66,7 +66,7 @@ class TransactionsButton(BaseButton): def click(self): self.driver.swipe(500, 1000, 500, 800) - self.find_element().click() + self.wait_for_visibility_of_element().click() return self.navigate() class SendTwoTxInBatchButton(BaseButton):