@@ -463,7 +463,7 @@ def test_contact_add_remove_mention_default_username_nickname_public_chat(self):
463
463
464
464
self .chat_1 .just_fyi ('Add user to contacts, mention it by nickname check contact list in Profile' )
465
465
chat_element .member_photo .click ()
466
- self .chat_1 .profile_add_to_contacts .click ()
466
+ self .chat_1 .profile_add_to_contacts_button .click ()
467
467
if not self .chat_1 .remove_from_contacts .is_element_displayed ():
468
468
self .errors .append ("'Add to contacts' is not changed to 'Remove from contacts'" )
469
469
self .chat_1 .close_button .click ()
@@ -528,66 +528,6 @@ def test_contact_add_remove_mention_default_username_nickname_public_chat(self):
528
528
self .errors .append ('Contact is shown in Profile after removing user from contacts' )
529
529
self .errors .verify_no_errors ()
530
530
531
- @marks .testrail_id (702176 )
532
- def test_contact_block_unblock_public_chat_offline (self ):
533
- [home .home_button .double_click () for home in [self .home_1 , self .home_2 ]]
534
-
535
- self .chat_1 .just_fyi ('Block user' )
536
- self .home_1 .get_chat ("#%s" % self .pub_chat_name ).click ()
537
- chat_element = self .chat_1 .chat_element_by_text (self .message )
538
- chat_element .find_element ()
539
- chat_element .member_photo .click ()
540
- self .chat_1 .block_contact ()
541
-
542
- self .chat_1 .just_fyi ('messages from blocked user are hidden in public chat and close app' )
543
- if self .chat_1 .chat_element_by_text (self .message ).is_element_displayed ():
544
- self .errors .append ("Messages from blocked user is not cleared in public chat " )
545
- self .chat_1 .home_button .click ()
546
- if self .home_1 .element_by_text (self .nick ).is_element_displayed ():
547
- self .errors .append ("1-1 chat from blocked user is not removed!" )
548
- self .chat_1 .toggle_airplane_mode ()
549
-
550
- self .home_2 .just_fyi ('send message to public chat while device 1 is offline' )
551
- message_blocked , message_unblocked = "Message from blocked user" , "Hurray! unblocked"
552
- self .home_2 .get_chat ("#%s" % self .pub_chat_name ).click ()
553
- self .chat_2 .send_message (message_blocked )
554
-
555
- self .chat_1 .just_fyi ('check that new messages from blocked user are not delivered' )
556
- self .chat_1 .toggle_airplane_mode ()
557
- self .home_1 .get_chat ("#%s" % self .pub_chat_name ).click ()
558
- for message in self .message , message_blocked :
559
- if self .chat_1 .chat_element_by_text (message ).is_element_displayed ():
560
- self .errors .append (
561
- "'%s' from blocked user is fetched from offline in public chat" % message )
562
-
563
- self .home_1 .just_fyi ('Verify input field is disabled in 1-1 chat with blocked user' )
564
- self .home_1 .home_button .double_click ()
565
- chat_1_1 = self .home_1 .add_contact (self .public_key_2 , add_in_contacts = False )
566
- if chat_1_1 .chat_message_input .is_element_displayed ():
567
- self .errors .append ("Chat input field is displayed in chat with blocked user" )
568
- self .home_1 .home_button .double_click ()
569
- self .home_1 .get_chat ("#%s" % self .pub_chat_name ).click ()
570
-
571
- self .chat_2 .just_fyi ('Unblock user and check that can see further messages' )
572
- profile_1 = self .home_1 .get_profile_view ()
573
- self .chat_1 .profile_button .double_click ()
574
- profile_1 .contacts_button .wait_and_click ()
575
- profile_1 .blocked_users_button .wait_and_click ()
576
- profile_1 .element_by_text (self .nick ).click ()
577
- self .chat_1 .unblock_contact_button .click ()
578
- self .chat_1 .close_button .click ()
579
- [home .home_button .click (desired_view = 'chat' ) for home in [self .home_1 , self .home_2 ]]
580
- self .chat_2 .send_message (message_unblocked )
581
- self .chat_2 .home_button .double_click ()
582
- self .home_2 .add_contact (self .sender ['public_key' ])
583
- self .chat_2 .send_message (message_unblocked )
584
- if not self .chat_1 .chat_element_by_text (message_unblocked ).is_element_displayed ():
585
- self .errors .append ("Message was not received in public chat after user unblock!" )
586
- self .chat_1 .home_button .click ()
587
- self .home_1 .get_chat (self .nick , wait_time = 30 ).click ()
588
- if not self .chat_1 .chat_element_by_text (message_unblocked ).is_element_displayed ():
589
- self .errors .append ("Message was not received in 1-1 chat after user unblock!" )
590
- self .errors .verify_no_errors ()
591
531
592
532
@marks .testrail_id (702188 )
593
533
@marks .xfail (
@@ -806,11 +746,11 @@ def test_ens_mention_nickname_1_1_chat(self):
806
746
807
747
self .chat_1 .just_fyi ('Check redirect to user profile on mention by nickname tap' )
808
748
self .chat_1 .chat_element_by_text (updated_message ).click ()
809
- if not self .chat_1 .profile_block_contact .is_element_displayed ():
749
+ if not self .chat_1 .profile_block_contact_button .is_element_displayed ():
810
750
self .errors .append (
811
751
'No redirect to user profile after tapping on message with mention (nickname) in 1-1 chat' )
812
752
else :
813
- self .chat_1 .profile_send_message .click ()
753
+ self .chat_1 .profile_send_message_button .click ()
814
754
815
755
self .chat_2 .just_fyi ("Check message with mention for ENS owner" )
816
756
self .home_2 .get_chat (self .sender ['username' ]).click ()
@@ -911,7 +851,7 @@ def test_sticker_1_1_public_chat_mainnet(self):
911
851
# self.chat_2.close_sticker_view_icon.click()
912
852
self .chat_2 .chat_item .long_press_element ()
913
853
self .chat_2 .element_by_text ('View Details' ).click ()
914
- self .chat_2 .profile_send_message .wait_and_click ()
854
+ self .chat_2 .profile_send_message_button .wait_and_click ()
915
855
self .errors .verify_no_errors ()
916
856
917
857
@marks .testrail_id (702158 )
0 commit comments