confirm_removal() emulator function fails with statenotfound error

Bug #1245651 reported by Nekhelesh Ramananthan on 2013-10-28
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Undecided
Leo Arias
ubuntu-ui-toolkit (Ubuntu)
Undecided
Unassigned

Bug Description

Rev 810 (https://code.launchpad.net/~renatofilho/ubuntu-ui-toolkit/fix-1236464/+merge/190496) added UITK emulator function to test swipe-to-delete and confirm delete a list item standard. On utilising this emulator function on a list item, one can notice (visually) that the emulator function swipe_to_delete() and confirm_removal() work as expect i.e they swipe the list item and click the delete button. However the tests still fail. The error message shown is,

Traceback (most recent call last):
  File "/home/krnekhelesh/Documents/Clock/use-default-swipe-delete/tests/autopilot/ubuntu_clock_app/tests/test_timer.py", line 118, in test_delete_preset
    first_preset.confirm_removal()
  File "/usr/lib/python2.7/dist-packages/ubuntuuitoolkit/emulators.py", line 378, in confirm_removal
    self.implicitHeight.wait_for(0)
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 213, in wait_for
    _, new_state = self.parent.get_new_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 537, in get_new_state
    raise StateNotFoundError(self.__class__.__name__, id=self.id)
StateNotFoundError: State not found for class 'Standard' and filters {'id': dbus.Int64(76L, variant_level=1)}.

Ran 1 test in 19.179s
FAILED (failures=1)

For reference:
Please take a look at MP https://code.launchpad.net/~nik90/ubuntu-clock-app/use-default-swipe-delete/+merge/191905 which utilises the emulator function and is a excellent example to reproduce this bug.

Related branches

summary: - Swipe to delete emulator function fails with statenotfound error
+ confirm_removal() emulator function fails with statenotfound error
description: updated
Leo Arias (elopio) on 2013-10-28
Changed in ubuntu-ui-toolkit:
assignee: nobody → Leo Arias (elopio)
status: New → Confirmed
Olivier Tilloy (osomon) wrote :

I’m encountering the same problem in the notes-app where I’m trying to use this emulator. See http://bazaar.launchpad.net/~osomon/notes-app/swipe-to-delete-emulator/revision/222 for the code.

Leo Arias (elopio) on 2013-11-08
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+14.04.20131118-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+14.04.20131118-0ubuntu1) trusty; urgency=low

  [ Zsombor Egri ]
  * Support for dynamically inserting/moving/removing tabs in Tabs. .
    (LP: #1124071)

  [ Leo Arias ]
  * Fixes for swipe_to_delete on autopilot list items emulator: Take
    into account items without confirmation. Take into account items
    that are destroyed on removal. (LP: #1245651, #1249221)

  [ Albert Astals ]
  * InverseMouseArea: Do not filter events if disabled.

  [ Robert Bruce Park ]
  * Support both Python 2 and 3 in the autopilot tests.

  [ Christian Dywan ]
  * Track magic window with a property signal instead of defining it.
    (LP: #1251436)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 837
 -- Ubuntu daily release <email address hidden> Mon, 18 Nov 2013 17:13:33 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Zoltan Balogh (bzoltan) on 2014-10-01
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers