~osomon/notes-app/simplify-db-lookup

« back to all changes in this revision

Viewing changes to tests/autopilot/notes_app/emulators/notesapp.py

Ask confirmation on slide-to-delete actions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
            "QQuickColumn").get_children_by_type("QQuickLoader")
28
28
        return parts
29
29
 
 
30
    def get_note_delete_confirmation_button(self, note_item):
 
31
        # XXX: this is highly unreliable, if the UITK implementation changes,
 
32
        # this will break. Likewise, if NoteItems were to have more than one
 
33
        # Row item at some point, it would break.
 
34
        # This is a temporary solution until
 
35
        # https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1236464 is fixed.
 
36
        return note_item.select_single("QQuickRow")
 
37
 
30
38
    def get_keyboard_rectangle(self):
31
39
        return self.select_single("KeyboardRectangle")