e2e: emoji fixes

This commit is contained in:
Churikova Tetiana 2021-10-06 12:41:09 +02:00
parent 1f10ad37d1
commit cd35af4e00
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
3 changed files with 4 additions and 8 deletions

View File

@ -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:

View File

@ -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()

View File

@ -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)