Skip to content

Commit 456ccb4

Browse files
committed
e2e: temp fix for image selection
1 parent be2c697 commit 456ccb4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: test/appium/views/chat_view.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,13 @@ def send_images_with_description(self, description, indexes=None):
12421242
self.show_images_button.click()
12431243
self.allow_button.click_if_shown()
12441244
self.allow_all_button.click_if_shown()
1245-
[self.get_image_by_index(i).click() for i in indexes]
1246-
self.images_confirm_selection_button.click()
1245+
confirm_button = self.images_confirm_selection_button
1246+
for i in indexes:
1247+
# ToDo: should be changed to just 1 click when https://github.com/status-im/status-mobile/issues/18872 when is fixed
1248+
self.get_image_by_index(i).click()
1249+
if not confirm_button.is_element_displayed(sec=3):
1250+
self.get_image_by_index(i).click()
1251+
confirm_button.click()
12471252
self.chat_message_input.send_keys(description)
12481253
self.send_message_button.click()
12491254

0 commit comments

Comments
 (0)