Add emulator for Swipe to delete confirmation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Undecided
|
Renato Araujo Oliveira Filho | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
At the moment it is not possible to reliably create autopilot tests that include the slide-to-delete behavior in an application.
An AP test can currently slide the list item away, but to complete the slide-to-delete action it needs to click on the "delete" button. The position of this button is relative to the size of the item and the calculation for it is completely internal to the list view item.
Therefore it's impossible to reliably click on the button as part of a test, since we can only guess where the button will be.
To fix this we need the uitk to export emulators that allow us to complete the slide-to-delete gesture but providing a function that will click on the delete button, similarly to the emulators already provided for revealing the toolbar.
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Olivier Tilloy (community): Approve
- Leo Arias (community): Approve (autopilot code review)
- Ubuntu SDK team: Pending requested
-
Diff: 282 lines (+186/-0)5 files modifiedCHANGES (+2/-0)
components.api (+2/-0)
modules/Ubuntu/Components/ListItems/Empty.qml (+22/-0)
tests/autopilot/ubuntuuitoolkit/emulators.py (+68/-0)
tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py (+92/-0)
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Renato Araujo Oliveira Filho (renatofilho) |
status: | Confirmed → In Progress |
summary: |
- Swipe to delete confirmation need emulators for AP tests + Add emulator for Swipe to delete confirmation |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Note that for the notes application, this is the temporary workaround I have applied: http:// bazaar. launchpad. net/~amanzi- team/notes- app/notes- app-slide- to-delete- confirm/ revision/ 207.
This is highly unreliable, we really need a reliable way to get this to confirmation button from the autopilot tests (at the very minimum, the corresponding MouseArea should have a well-known objectName, even better would be a standard emulator that completely encapsulates the implementation details).