mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
chore: add attempts for clicking networks and next buttons (#216)
This commit is contained in:
parent
fa939e2cf7
commit
5ed7dbd9cf
@ -288,10 +288,16 @@ class YourProfileView(OnboardingView):
|
|||||||
return PictureEditPopup().wait_until_appears()
|
return PictureEditPopup().wait_until_appears()
|
||||||
|
|
||||||
@allure.step('Open Emoji and Icon view')
|
@allure.step('Open Emoji and Icon view')
|
||||||
def next(self) -> 'EmojiAndIconView':
|
def next(self, attempts: int = 2) -> 'EmojiAndIconView':
|
||||||
self._next_button.click()
|
self._next_button.click()
|
||||||
time.sleep(1)
|
try:
|
||||||
return EmojiAndIconView()
|
return EmojiAndIconView().wait_until_appears()
|
||||||
|
except AssertionError as err:
|
||||||
|
if attempts:
|
||||||
|
return self.next(attempts - 1)
|
||||||
|
else:
|
||||||
|
raise err
|
||||||
|
|
||||||
|
|
||||||
@allure.step('Go back')
|
@allure.step('Go back')
|
||||||
def back(self):
|
def back(self):
|
||||||
|
@ -38,9 +38,15 @@ class WalletSettingsView(QObject):
|
|||||||
return AccountPopup().wait_until_appears()
|
return AccountPopup().wait_until_appears()
|
||||||
|
|
||||||
@allure.step('Open networks in wallet settings')
|
@allure.step('Open networks in wallet settings')
|
||||||
def open_networks(self):
|
def open_networks(self, attempts: int = 2):
|
||||||
self._wallet_network_button.click()
|
self._wallet_network_button.click()
|
||||||
return NetworkWalletSettings().wait_until_appears()
|
try:
|
||||||
|
return NetworkWalletSettings().wait_until_appears()
|
||||||
|
except AssertionError as err:
|
||||||
|
if attempts:
|
||||||
|
return self.open_networks(attempts - 1)
|
||||||
|
else:
|
||||||
|
raise err
|
||||||
|
|
||||||
@allure.step('Open account order in wallet settings')
|
@allure.step('Open account order in wallet settings')
|
||||||
def open_account_order(self):
|
def open_account_order(self):
|
||||||
|
@ -12,6 +12,7 @@ from scripts.tools import image
|
|||||||
'Manage community: Manage Airdrops screen overview')
|
'Manage community: Manage Airdrops screen overview')
|
||||||
@pytest.mark.case(703200)
|
@pytest.mark.case(703200)
|
||||||
@pytest.mark.parametrize('params', [constants.community_params])
|
@pytest.mark.parametrize('params', [constants.community_params])
|
||||||
|
@pytest.mark.skip(reason='https://github.com/status-im/desktop-qa-automation/issues/186')
|
||||||
def test_airdrops_screen(main_screen: MainWindow, params):
|
def test_airdrops_screen(main_screen: MainWindow, params):
|
||||||
with step('Create community'):
|
with step('Create community'):
|
||||||
main_screen.create_community(params)
|
main_screen.create_community(params)
|
||||||
|
@ -12,6 +12,7 @@ from scripts.tools import image
|
|||||||
'Manage community: Manage Mint Tokens screen overview')
|
'Manage community: Manage Mint Tokens screen overview')
|
||||||
@pytest.mark.case(703199)
|
@pytest.mark.case(703199)
|
||||||
@pytest.mark.parametrize('params', [constants.community_params])
|
@pytest.mark.parametrize('params', [constants.community_params])
|
||||||
|
@pytest.mark.skip(reason='https://github.com/status-im/desktop-qa-automation/issues/186')
|
||||||
def test_tokens_screen(main_screen: MainWindow, params):
|
def test_tokens_screen(main_screen: MainWindow, params):
|
||||||
with step('Create community'):
|
with step('Create community'):
|
||||||
main_screen.create_community(params)
|
main_screen.create_community(params)
|
||||||
|
@ -20,8 +20,8 @@ def keys_screen(main_window) -> KeysView:
|
|||||||
if configs.system.IS_MAC:
|
if configs.system.IS_MAC:
|
||||||
AllowNotificationsView().wait_until_appears().allow()
|
AllowNotificationsView().wait_until_appears().allow()
|
||||||
BeforeStartedPopUp().get_started()
|
BeforeStartedPopUp().get_started()
|
||||||
wellcome_screen = WelcomeToStatusView().wait_until_appears()
|
welcome_screen = WelcomeToStatusView().wait_until_appears()
|
||||||
return wellcome_screen.get_keys()
|
return welcome_screen.get_keys()
|
||||||
|
|
||||||
|
|
||||||
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703421', 'Generate new keys')
|
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703421', 'Generate new keys')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user