diff --git a/test/appium/tests/atomic/chats/test_public.py b/test/appium/tests/atomic/chats/test_public.py index 52a2b4c90f..ecf33de5c6 100644 --- a/test/appium/tests/atomic/chats/test_public.py +++ b/test/appium/tests/atomic/chats/test_public.py @@ -232,7 +232,6 @@ class TestPublicChatMultipleDevice(MultipleDeviceTestCase): home_2.just_fyi('Add device1 to contacts and check that status will be shown in timeline_1') chat_2.close_button.scroll_and_click(direction='up') - chat_2.close_button.click() chat_2.add_to_contacts.click() timeline_2 = chat_2.status_button.click() for status in statuses: diff --git a/test/appium/views/base_element.py b/test/appium/views/base_element.py index 6bc8f41e52..20c7920aca 100644 --- a/test/appium/views/base_element.py +++ b/test/appium/views/base_element.py @@ -283,14 +283,12 @@ class EditBox(BaseElement): super(EditBox, self).__init__(driver, **kwargs) def send_keys(self, value): - value = self.exclude_emoji(value) self.find_element().send_keys(value) - self.driver.info("*Type '%s' to %s*" % (value, self.name)) + self.driver.info("*Type '%s' to %s*" % (self.exclude_emoji(value), self.name)) def set_value(self, value): - value = self.exclude_emoji(value) self.find_element().set_value(value) - self.driver.info("*Type '%s' to %s*" % (value, self.name)) + self.driver.info("*Type '%s' to %s*" % (self.exclude_emoji(value), self.name)) def clear(self): self.find_element().clear() diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index 7129a855e9..32e5870149 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -760,7 +760,7 @@ class ChatView(BaseView): errors.append("Message '%s' is not under 'Today' text" % text) def send_message(self, message: str = 'test message'): - self.driver.info("**Sending message '%s'**" % message) + self.driver.info("**Sending message '%s'**" % BaseElement(self.driver).exclude_emoji(message)) self.chat_message_input.wait_for_element(5) self.chat_message_input.send_keys(message) self.send_message_button.click() @@ -910,8 +910,7 @@ class ChatView(BaseView): def set_new_status(self, status='something is happening', image=False): - status = BaseElement(self.driver).exclude_emoji(status) - self.driver.info("**Setting new status:'%s', image set is: '%s'**" % (status, str(image))) + self.driver.info("**Setting new status:'%s', image set is: '%s'**" % (BaseElement(self.driver).exclude_emoji(status), str(image))) self.timeline_add_new_status_button.click_until_presence_of_element(self.timeline_my_status_editbox) self.timeline_my_status_editbox.set_value(status)