From a5f5fe530b6fa1b201152a936715860865065ff5 Mon Sep 17 00:00:00 2001 From: Vladimir Druzhinin <128374224+StateOf-Vlado@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:39:47 +0100 Subject: [PATCH] chore: Mock keycard option added in test (#268) #256 --- test/e2e/gui/main_window.py | 6 ++++-- .../test_create_keycard_account_with_new_seed_phrase.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/e2e/gui/main_window.py b/test/e2e/gui/main_window.py index 03bfed57d3..e501b85b59 100644 --- a/test/e2e/gui/main_window.py +++ b/test/e2e/gui/main_window.py @@ -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') diff --git a/test/e2e/tests/settings/settings_keycard/test_create_keycard_account_with_new_seed_phrase.py b/test/e2e/tests/settings/settings_keycard/test_create_keycard_account_with_new_seed_phrase.py index d903cf10e9..6c18de9603 100644 --- a/test/e2e/tests/settings/settings_keycard/test_create_keycard_account_with_new_seed_phrase.py +++ b/test/e2e/tests/settings/settings_keycard/test_create_keycard_account_with_new_seed_phrase.py @@ -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()