Merge lp://qastaging/~nskaggs/ubuntu-calculator-app/ap-fix-missing-keypress into lp://qastaging/~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 341
Merged at revision: 323
Proposed branch: lp://qastaging/~nskaggs/ubuntu-calculator-app/ap-fix-missing-keypress
Merge into: lp://qastaging/~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 1349 lines (+639/-492)
6 files modified
Simple/SimplePage.qml (+1/-0)
tests/autopilot/ubuntu_calculator_app/__init__.py (+332/-7)
tests/autopilot/ubuntu_calculator_app/emulators.py (+0/-282)
tests/autopilot/ubuntu_calculator_app/tests/__init__.py (+156/-72)
tests/autopilot/ubuntu_calculator_app/tests/test_screen.py (+91/-0)
tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py (+59/-131)
To merge this branch: bzr merge lp://qastaging/~nskaggs/ubuntu-calculator-app/ap-fix-missing-keypress
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Leo Arias (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+233534@code.qastaging.launchpad.net

Commit message

Increase the keypress duration to avoid missing pressing keys.

Description of the change

A simple tweak to increase the keypress duration to avoid missing pressing keys. We should still consider tweaking how we perform operations.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) :
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Thanks Leo, left my replies. I'm really trying to not go overboard on redoing this, but it's easy to start that direction.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

All the tests now pass locally and on the device, albeit with the extra attempt. Now to track down why the app isn't capturing the press.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Note, althought some things are converted and some cleanups done, I attempted to keep this as simple as possible. Another MP can bring this inline with current best practices.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (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
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

228 + self.pointing_device.press()
229 + buttonarea.pressed.wait_for(True)
230 + self.pointing_device.release()

Could you please put a comment there explaining why calling self.pointing_device.click_object does not work on this case?

341. By Nicholas Skaggs

add comment explaining use of _click_button

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) :
review: Approve
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