chore: Mock keycard option added in test (#268)

#256
This commit is contained in:
Vladimir Druzhinin 2023-11-07 17:39:47 +01:00 committed by GitHub
parent 294119c08a
commit a5f5fe530b
2 changed files with 6 additions and 3 deletions

View File

@ -152,7 +152,8 @@ class MainWindow(Window):
BiometricsView().wait_until_appears().prefer_password()
SplashScreen().wait_until_appears().wait_until_hidden()
if not configs.DEV_BUILD:
BetaConsentPopup().confirm()
if driver.waitFor(lambda: BetaConsentPopup().exists, configs.timeouts.UI_LOAD_TIMEOUT_MSEC):
BetaConsentPopup().confirm()
return self
@allure.step('Log in user')
@ -160,7 +161,8 @@ class MainWindow(Window):
LoginView().log_in(user_account)
SplashScreen().wait_until_appears().wait_until_hidden()
if not configs.DEV_BUILD:
BetaConsentPopup().wait_until_appears().confirm()
if driver.waitFor(lambda: BetaConsentPopup().exists, configs.timeouts.UI_LOAD_TIMEOUT_MSEC):
BetaConsentPopup().confirm()
return self
@allure.step('Authorize user')

View File

@ -13,7 +13,8 @@ from gui.mocked_keycard_controller import MockedKeycardController
@allure.testcase('https://ethstatus.testrail.net/index.php?/cases/view/703624',
'Create a new keycard account with a new seed phrase')
@pytest.mark.case(703624)
@pytest.mark.skip(reason="https://github.com/status-im/desktop-qa-automation/issues/256")
@pytest.mark.parametrize('options', [aut_options.MOCK_KEYCARD])
@pytest.mark.skip(reason="https://github.com/status-im/desktop-qa-automation/issues/274")
def test_create_keycard_account_with_new_seed_phrase(main_screen: MainWindow):
with step('Choose option Create a new Keycard account with a new seed phrase in settings'):
main_screen.prepare()