File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed
Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ def test_links_deep_links_profile(self):
7777 @marks .testrail_id (739307 )
7878 def test_deep_links_communities (self ):
7979 closed_community_name , snt_community_name = "closed community" , "SNT community"
80- self .home . navigate_back_to_home_view ( )
81- self .home .communities_tab . click ()
80+ self .sign_in . reopen_app ( sign_in = True , user_name = self . username )
81+ self .home .navigate_to_communities_view ()
8282 self .home .create_community (community_type = "closed" )
8383 if not self .community_view .community_options_button .is_element_displayed ():
8484 self .home .get_chat (closed_community_name , community = True ).click ()
@@ -111,8 +111,7 @@ def test_deep_links_communities(self):
111111 self .errors .append (self .community_view ,
112112 "Community '%s' was not requested to join by the deep link %s" % (text , link ))
113113 if text != closed_community_name : # the last one
114- self .home .navigate_back_to_home_view ()
115- self .home .browser_tab .click ()
114+ self .home .click_system_back_button ()
116115 self .errors .verify_no_errors ()
117116
118117 @marks .testrail_id (704614 )
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def test_profile_change_accent_color(self):
266266 self .home_1 .just_fyi ("User 1 changes accent colour" )
267267 self .home_1 .profile_button .click ()
268268 self .profile_1 .change_accent_colour (colour_name = 'magenta' )
269- self .profile_1 .navigate_back_to_main_profile_view ()
269+ self .profile_1 .click_system_back_button ()
270270 red , green , blue = self .profile_1 .user_avatar .get_element_rgb ()
271271 if red < 70 or blue < 30 :
272272 self .errors .append (
Original file line number Diff line number Diff line change @@ -193,7 +193,6 @@ def confirm(self):
193193
194194 def just_fyi (self , some_str ):
195195 self .driver .info ('# STEP: %s' % some_str , device = False )
196- # self.driver.execute_script("sauce:context=STEP: %s" % some_str)
197196 self .driver .log_event ("appium" , "STEP: %s" % some_str )
198197
199198 def hide_keyboard_if_shown (self ):
@@ -238,12 +237,6 @@ def navigate_back_to_home_view(self):
238237 except StaleElementReferenceException :
239238 continue
240239
241- # while not self.chat_floating_screen.is_element_disappeared(1) \
242- # or not self.community_floating_screen.is_element_disappeared(1) \
243- # or not self.discover_communities_floating_screen.is_element_disappeared(1):
244- # self.driver.press_keycode(4)
245- # self.click_system_back_button_until_presence_of_element(self.chats_tab)
246-
247240 def navigate_to_chats_view (self ):
248241 self .navigate_back_to_home_view ()
249242 self .chats_tab .click ()
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ def open_url(self, url):
1818 web_view .open_new_tab_plus_button .click_if_shown ()
1919 self .enter_url_editbox .wait_for_visibility_of_element (20 )
2020 self .enter_url_editbox .click ()
21+ self .enter_url_editbox .clear ()
2122 self .enter_url_editbox .send_keys (url )
2223 self .confirm ()
2324 from views .web_views .base_web_view import BaseWebView
You can’t perform that action at this time.
0 commit comments