diff --git a/src/status_im/ui/screens/add_new/new_chat/views.cljs b/src/status_im/ui/screens/add_new/new_chat/views.cljs index 0d7bb1564f..9b9080521b 100644 --- a/src/status_im/ui/screens/add_new/new_chat/views.cljs +++ b/src/status_im/ui/screens/add_new/new_chat/views.cljs @@ -66,7 +66,8 @@ [topbar/topbar {:title :t/new-chat :modal? true - :accessories [{:icon :qr + :accessories [{:icon :qr + :accessibility-label :scan-contact-code-button :handler #(re-frame/dispatch [:qr-scanner.ui/scan-qr-code-pressed {:title (i18n/label :t/new-contact) :handler :contact/qr-code-scanned}])}]}] diff --git a/test/appium/tests/atomic/chats/test_chats_management.py b/test/appium/tests/atomic/chats/test_chats_management.py index 3f09a0cfcd..1db5e5f585 100644 --- a/test/appium/tests/atomic/chats/test_chats_management.py +++ b/test/appium/tests/atomic/chats/test_chats_management.py @@ -133,7 +133,7 @@ class TestChatManagement(SingleDeviceTestCase): contacts_view = home.start_new_chat_button.click() contacts_view.public_key_edit_box.set_value(basic_user['public_key'][:-1]) contacts_view.confirm() - warning_text = contacts_view.element_by_text('Please enter or scan a valid chat key or username') + warning_text = contacts_view.element_by_text('User not found') if not warning_text.is_element_displayed(): self.driver.fail('Error is not shown for invalid public key') diff --git a/test/appium/tests/atomic/chats/test_one_to_one.py b/test/appium/tests/atomic/chats/test_one_to_one.py index 725f3fe105..d65344d922 100644 --- a/test/appium/tests/atomic/chats/test_one_to_one.py +++ b/test/appium/tests/atomic/chats/test_one_to_one.py @@ -170,7 +170,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase): default_username_2 = profile_2.default_username_text.text profile_2.home_button.click() - device_1_chat = device_1_home.add_contact(device_2_public_key) + device_1_chat = device_1_home.add_contact(device_2_public_key + ' ') message = 'hello' device_1_chat.chat_message_input.send_keys(message) device_1_chat.send_message_button.click()