@@ -186,10 +186,8 @@ def test_1_1_chat_emoji_send_reply_and_open_link(self):
186186
187187 self .errors .verify_no_errors ()
188188
189- # @marks.smoke # ToDo: return to the smoke suite when https://github.com/status-im/status-mobile/issues/22497 is fixed
189+ @marks .smoke
190190 @marks .testrail_id (702731 )
191- @marks .xfail (
192- reason = "Can not unpin messages from pinned messages menu - https://github.com/status-im/status-mobile/issues/22497" )
193191 def test_1_1_chat_pin_messages (self ):
194192 self .home_1 .just_fyi ("Check that Device1 can pin own message in 1-1 chat" )
195193 self .chat_2 .navigate_to_chats_view ()
@@ -243,10 +241,9 @@ def test_1_1_chat_pin_messages(self):
243241 or self .chat_1 .pinned_messages_list .message_element_by_text (self .message_4 ).is_element_displayed ():
244242 self .errors .append (self .chat_1 , "Can pin more than 3 messages in chat" )
245243 else :
246- unpin_element = self .chat_1 .element_by_translation_id ('unpin-from-chat' )
247244 self .chat_1 .pinned_messages_list .message_element_by_text (self .message_2 ).long_press_without_release ()
248245 self .home_1 .just_fyi ("Unpin one message so that another could be pinned" )
249- unpin_element . click_until_absense_of_element ( desired_element = unpin_element )
246+ self . chat_1 . element_by_translation_id ( 'unpin-from-chat' ). click ( )
250247 self .chat_1 .pin_message (self .message_4 , 'pin-to-chat' )
251248 for chat in self .chat_1 , self .chat_2 :
252249 if not chat .chat_element_by_text (self .message_4 ).pinned_by_label .is_element_displayed (30 ):
@@ -263,9 +260,8 @@ def test_1_1_chat_pin_messages(self):
263260 self .chat_1 .tap_by_coordinates (500 , 100 )
264261 self .chat_1 .view_pinned_messages_button .click_until_presence_of_element (self .chat_1 .pinned_messages_list )
265262 pinned_message = self .chat_1 .pinned_messages_list .message_element_by_text (self .message_4 )
266- unpin_element = self .chat_1 .element_by_translation_id ("unpin-from-chat" )
267263 pinned_message .long_press_without_release ()
268- unpin_element . click_until_absense_of_element ( unpin_element )
264+ self . chat_1 . element_by_translation_id ( "unpin-from-chat" ). click ( )
269265 try :
270266 self .chat_2 .chat_element_by_text (self .message_4 ).pinned_by_label .wait_for_invisibility_of_element (60 )
271267 except TimeoutException :
0 commit comments