e2e: temp fix for image selection

This commit is contained in:
Yevheniia Berdnyk 2024-02-16 18:03:54 +02:00
parent be2c697b7c
commit 456ccb4c69
No known key found for this signature in database
GPG Key ID: 0642C73C66214825
1 changed files with 7 additions and 2 deletions

View File

@ -1242,8 +1242,13 @@ class ChatView(BaseView):
self.show_images_button.click() self.show_images_button.click()
self.allow_button.click_if_shown() self.allow_button.click_if_shown()
self.allow_all_button.click_if_shown() self.allow_all_button.click_if_shown()
[self.get_image_by_index(i).click() for i in indexes] confirm_button = self.images_confirm_selection_button
self.images_confirm_selection_button.click() 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.chat_message_input.send_keys(description)
self.send_message_button.click() self.send_message_button.click()