Merge lp://qastaging/~elopio/ubuntu-ui-toolkit/fix1274240-gallery-textfield_helper into lp://qastaging/ubuntu-ui-toolkit

Proposed by Leo Arias
Status: Merged
Approved by: Cris Dywan
Approved revision: 936
Merged at revision: 932
Proposed branch: lp://qastaging/~elopio/ubuntu-ui-toolkit/fix1274240-gallery-textfield_helper
Merge into: lp://qastaging/ubuntu-ui-toolkit
Prerequisite: lp://qastaging/~zsombi/ubuntu-ui-toolkit/dateUtilsTestFix
Diff against target: 179 lines (+81/-50)
3 files modified
tests/autopilot/ubuntuuitoolkit/emulators.py (+1/-0)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_textinput.py (+50/-50)
tests/unit_x11/tst_components/tst_textfield.qml (+30/-0)
To merge this branch: bzr merge lp://qastaging/~elopio/ubuntu-ui-toolkit/fix1274240-gallery-textfield_helper
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Cris Dywan Approve
Richard Huddie Pending
Javier Collado Pending
VĂ­ctor R. Ruiz Pending
Review via email: mp+203831@code.qastaging.launchpad.net

This proposal supersedes a proposal from 2014-01-29.

Commit message

Use the autopilot text field helper in the gallery test cases

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :
Revision history for this message
Leo Arias (elopio) wrote :
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

This fails on mako in ERROR: ubuntuuitoolkit.tests.test_emulators.TextFieldTestCase.test_write_without_clear

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

So why doesn't write work here? Is that a bug?

review: Needs Information
Revision history for this message
Leo Arias (elopio) wrote :

Because I added a focus.wait_for(True) on the write method, so it will only work on enabled textfields.
I thought that's ok, as we should never write on disabled textfields, and if we do it should fail anyway.

So, for this test on the disabled text field, we need to go one level lower than write, and call type so we avoid the focus.wait_for(True)

Let me know what you think about it.
Thanks for reviewing.

Revision history for this message
Cris Dywan (kalikiana) wrote :

It wasn't clear from the code, but the reasoning is sound.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Thanks for the review!
All tests failed again in jenkins, I wonder what's going on there. Still, not related to this branch.

Now, after this branch lands, please let me know if you see any text fields misbehaving. The logs should provide more useful information and clues to what we can try next.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: