e2e: fixes for welcome button and more

This commit is contained in:
Yevheniia Berdnyk 2024-08-07 19:26:51 +03:00
parent 41e18993be
commit 605e3a727d
No known key found for this signature in database
3 changed files with 16 additions and 4 deletions

View File

@ -78,6 +78,7 @@ class TestDeepLinksOneDevice(MultipleSharedDeviceTestCase):
def test_deep_links_communities(self):
closed_community_name, snt_community_name = "closed community", "SNT community"
self.home.navigate_back_to_home_view()
self.home.communities_tab.click()
self.home.create_community(community_type="closed")
if not self.community_view.community_options_button.is_element_displayed():
self.home.get_chat(closed_community_name, community=True).click()

View File

@ -260,9 +260,12 @@ class SignInView(BaseView):
# self.next_button.click()
# self.identifiers_button.wait_and_click(30)
if enable_notifications:
self.enable_notifications_button.click_until_presence_of_element(self.start_button)
if self.allow_button.is_element_displayed(10):
self.allow_button.click_until_presence_of_element(self.start_button)
self.enable_notifications_button.wait_and_click()
for _ in range(3):
self.allow_button.click_if_shown(sec=10)
self.enable_notifications_button.click_if_shown()
if self.start_button.is_element_displayed():
break
else:
self.maybe_later_button.click_until_presence_of_element(self.start_button)
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
@ -294,6 +297,7 @@ class SignInView(BaseView):
self.enable_notifications_button.click_until_presence_of_element(self.start_button)
else:
self.maybe_later_button.click_until_presence_of_element(self.start_button)
self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed
self.start_button.click()
self.chats_tab.wait_for_visibility_of_element(30)
self.driver.info("## Multiaccount is recovered successfully!", device=False)

View File

@ -1,3 +1,5 @@
import time
import pytest
from tests import common_password
@ -120,7 +122,12 @@ class WalletView(BaseView):
self.login_button.click()
def confirm_transaction(self):
self.confirm_button.click_until_presence_of_element(self.slide_button_track)
self.confirm_button.click()
for _ in range(3):
if self.slide_button_track.is_element_displayed():
break
time.sleep(1)
self.confirm_button.click()
self.slide_and_confirm_with_password()
def set_amount(self, amount: float):