~timo-jyrinki/gallery-app/allow_translating_date_strings

« back to all changes in this revision

Viewing changes to tests/autopilot/gallery_app/emulators/gallery_utils.py

Fix AP tests
Approved by: Federico Gimenez

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
 
70
70
    def get_delete_dialog_delete_button(self):
71
71
        """Returns the delete button of the delete popover."""
72
 
        return self.app.select_single("Button", objectName="deleteDialogYes",
73
 
                                      visible=True)
 
72
        return self.app.wait_select_single("Button",
 
73
                                           objectName="deleteDialogYes",
 
74
                                           visible=True)
74
75
 
75
76
    def get_delete_dialog_cancel_button(self):
76
77
        """Returns the cancel button of the delete popover."""
77
 
        return self.app.select_single("Button", objectName="deleteDialogNo",
78
 
                                      visible=True)
 
78
        return self.app.wait_select_single("Button",
 
79
                                           objectName="deleteDialogNo",
 
80
                                           visible=True)
79
81
 
80
82
    def get_all_albums(self):
81
83
        """Returns all albums in the albums view"""