Skip to content

Commit

Permalink
e2e: temp fix for image selection
Browse files Browse the repository at this point in the history
  • Loading branch information
yevh-berdnyk committed Feb 17, 2024
1 parent be2c697 commit 456ccb4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/appium/views/chat_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,13 @@ def send_images_with_description(self, description, indexes=None):
self.show_images_button.click()
self.allow_button.click_if_shown()
self.allow_all_button.click_if_shown()
[self.get_image_by_index(i).click() for i in indexes]
self.images_confirm_selection_button.click()
confirm_button = self.images_confirm_selection_button
for i in indexes:
# ToDo: should be changed to just 1 click when https://github.com/status-im/status-mobile/issues/18872 when is fixed
self.get_image_by_index(i).click()
if not confirm_button.is_element_displayed(sec=3):
self.get_image_by_index(i).click()
confirm_button.click()
self.chat_message_input.send_keys(description)
self.send_message_button.click()

Expand Down

0 comments on commit 456ccb4

Please sign in to comment.