e2e: fix for getting profile link

This commit is contained in:
Yevheniia Berdnyk 2024-09-11 17:07:04 +03:00
parent 72a02df646
commit bf6c89e263
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -345,6 +345,7 @@ class HomeView(BaseView):
self.link_to_profile_text = Text(self.driver, accessibility_id="share-qr-code-info-text")
self.close_share_tab_button = Button(self.driver, accessibility_id="close-shell-share-tab")
self.qr_code_image_element = BaseElement(self.driver, accessibility_id='share-qr-code')
self.share_profile_tab_button = Button(self.driver, accessibility_id="Profile")
self.share_wallet_tab_button = Button(self.driver, accessibility_id="Wallet")
self.account_avatar = BaseElement(self.driver, accessibility_id="account-avatar")
self.account_name_text = Text(
@ -578,6 +579,7 @@ class HomeView(BaseView):
def get_link_to_profile(self):
self.show_qr_code_button.click()
self.share_profile_tab_button.click()
self.link_to_profile_button.click()
link_to_profile = self.sharing_text_native.text
self.click_system_back_button()