Keyboard Typing Tests failing on CI

Bug #1301005 reported by Corey Goldberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
High
Corey Goldberg
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

from console log:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autopilot/tests/functional/test_input_stack.py", line 113, in test_text_typing
    "app shows: " + text_edit.plainText
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
MismatchError: After 10.0 seconds test on QTextEdit.plainText failed: !=:
reference = u'abcdefghijklmnopqrstuvwxyz'
actual = u'defghijklmnopqrstuvwxyz'
: app shows: defghijklmnopqrstuvwxyz

Related branches

Changed in autopilot:
importance: Undecided → High
assignee: nobody → Corey Goldberg (coreygoldberg)
Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

keyboard typing is starting before field has focus and first 3 letters were truncated.

Changed in autopilot:
status: New → In Progress
Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

to run against trunk:
$ python -m autopilot.run run autopilot.tests.functional.test_input_stack.InputStackKeyboardTypingTests.test_text_typing

Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

 the proper fix (IMHO) is to ensure it's synchronized/focused by using the 'focused_type' context manager. which is exactly what the next set of tests do. Since it's already tested and synchronized in 'test_typing_with_contextmanager' tests, I'm not sure adding a sleep or coming up with good synchronization method in this test case is doing anything more for us here. thoughts?

Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

I added:

self.assertThat(text_edit.focus, Eventually(Equals(True)))

... to ensure focus

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.4+14.04.20140408-0ubuntu1

---------------
autopilot (1.4+14.04.20140408-0ubuntu1) trusty; urgency=low

  [ Thomi Richards ]
  * Fix flake8 errors in trunk.
  * Make the make-coverage.sh script exit non-0 when tests fail.
  * Don't abort print_tree when we catch the StateNotFoundError
    exception. (LP: #1276672)
  * Tweak the vis tool so the splitter between the tree widget and the
    properties pane cannot be completely dragged to one side or the
    other. (LP: #1281360)
  * Fix functional test that was very dependant on timing. (LP:
    #1301005)
  * Make logger objects within autopilot private.

  [ Nicholas Skaggs ]
  * Don't abort print_tree when we catch the StateNotFoundError
    exception. (LP: #1276672)

  [ Corey Goldberg ]
  * When no tests are found, display "Did not find any tests" and exit,
    instead of invoking the runner. (LP: #1282995)
  * Fix functional test that was very dependant on timing. (LP:
    #1301005)

  [ nskaggs ]
  * Don't abort print_tree when we catch the StateNotFoundError
    exception. (LP: #1276672)

  [ Max Brustkern ]
  * Update documentation to reflect new terminology (LP:1288054) (LP:
    #1288054)
  * Make logger objects within autopilot private.
 -- Ubuntu daily release <email address hidden> Tue, 08 Apr 2014 00:29:56 +0000

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.