From 456ccb4c69d55bf7cf2d679a2c383518b85aaee9 Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Fri, 16 Feb 2024 18:03:54 +0200 Subject: [PATCH] e2e: temp fix for image selection --- test/appium/views/chat_view.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index d4cbaafc919..25ea010b090 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -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()