chore: fix for metrics popup
This commit is contained in:
parent
52fe774975
commit
7d49b6bd9c
|
@ -12,6 +12,7 @@ from gui.components.community.invite_contacts import InviteContactsPopup
|
|||
from gui.components.context_menu import ContextMenu
|
||||
from gui.components.onboarding.before_started_popup import BeforeStartedPopUp
|
||||
from gui.components.onboarding.beta_consent_popup import BetaConsentPopup
|
||||
from gui.components.onboarding.share_usage_data_popup import ShareUsageDataPopup
|
||||
from gui.components.splash_screen import SplashScreen
|
||||
from gui.components.toast_message import ToastMessage
|
||||
from gui.components.online_identifier import OnlineIdentifier
|
||||
|
@ -174,6 +175,7 @@ class MainWindow(Window):
|
|||
|
||||
@allure.step('Sign Up user')
|
||||
def sign_up(self, user_account: UserAccount = constants.user.user_account_one):
|
||||
share_updates_popup = ShareUsageDataPopup()
|
||||
BeforeStartedPopUp().get_started()
|
||||
welcome_screen = WelcomeToStatusView().wait_until_appears()
|
||||
profile_view = welcome_screen.get_keys().generate_new_keys()
|
||||
|
@ -190,14 +192,19 @@ class MainWindow(Window):
|
|||
SplashScreen().wait_until_appears().wait_until_hidden()
|
||||
if not configs.system.TEST_MODE:
|
||||
BetaConsentPopup().confirm()
|
||||
if share_updates_popup.exists:
|
||||
share_updates_popup.skip()
|
||||
return self
|
||||
|
||||
@allure.step('Log in user')
|
||||
def log_in(self, user_account: UserAccount):
|
||||
share_updates_popup = ShareUsageDataPopup()
|
||||
LoginView().log_in(user_account)
|
||||
SplashScreen().wait_until_appears().wait_until_hidden()
|
||||
if not configs.system.TEST_MODE:
|
||||
BetaConsentPopup().confirm()
|
||||
if share_updates_popup.exists:
|
||||
share_updates_popup.skip()
|
||||
return self
|
||||
|
||||
@allure.step('Authorize user')
|
||||
|
|
|
@ -52,12 +52,14 @@ class WelcomeToStatusView(QObject):
|
|||
def get_keys(self) -> 'KeysView':
|
||||
self._i_am_new_to_status_button.click()
|
||||
time.sleep(1)
|
||||
ShareUsageDataPopup().skip()
|
||||
return KeysView().wait_until_appears()
|
||||
|
||||
@allure.step('Open Sign by syncing form')
|
||||
def sync_existing_user(self) -> 'SignBySyncingView':
|
||||
self._i_already_use_status_button.click()
|
||||
time.sleep(1)
|
||||
ShareUsageDataPopup().skip()
|
||||
return SignBySyncingView().wait_until_appears()
|
||||
|
||||
|
||||
|
@ -84,19 +86,16 @@ class KeysView(OnboardingView):
|
|||
@allure.step('Open Profile view')
|
||||
def generate_new_keys(self) -> 'YourProfileView':
|
||||
self._generate_key_button.click()
|
||||
ShareUsageDataPopup().skip()
|
||||
return YourProfileView().verify_profile_view_present()
|
||||
|
||||
@allure.step('Open Keycard Init view')
|
||||
def generate_key_for_new_keycard(self) -> 'KeycardInitView':
|
||||
self._generate_key_for_new_keycard_button.click()
|
||||
ShareUsageDataPopup().skip()
|
||||
return KeycardInitView().wait_until_appears()
|
||||
|
||||
@allure.step('Open Import Seed Phrase view')
|
||||
def open_import_seed_phrase_view(self) -> 'ImportSeedPhraseView':
|
||||
self._import_seed_phrase_button.click()
|
||||
ShareUsageDataPopup().skip()
|
||||
return ImportSeedPhraseView().wait_until_appears()
|
||||
|
||||
@allure.step('Open Enter Seed Phrase view')
|
||||
|
|
Loading…
Reference in New Issue