Merge lp:~renatofilho/address-book-app/fix-test_import_from_sim into lp:address-book-app
| Status: | Superseded | ||||
|---|---|---|---|---|---|
| Proposed branch: | lp:~renatofilho/address-book-app/fix-test_import_from_sim | ||||
| Merge into: | lp:address-book-app | ||||
| Prerequisite: | lp:~renatofilho/address-book-app/split-app | ||||
| Diff against target: |
40 lines (+8/-7) 2 files modified
tests/autopilot/address_book_app/pages/_contact_list_page.py (+6/-0) tests/autopilot/address_book_app/tests/test_import_from_sim.py (+2/-7) |
||||
| To merge this branch: | bzr merge lp:~renatofilho/address-book-app/fix-test_import_from_sim | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | 2015-05-12 | Needs Fixing on 2015-05-13 |
| Leo Arias | 2015-05-12 | Pending | |
| Omer Akram | 2015-05-12 | Pending | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-04-14.
This proposal has been superseded by a proposal from 2015-05-12.
Commit Message
Updated autopilot test:
Check if "import from sim button" is invisible when all SIM cards get removed.
| Omer Akram (om26er) wrote : | # |
Now that the test behavior have been changed, please change the test name to something like:
test_import_
| Omer Akram (om26er) wrote : | # |
Other than that code looks good to me.
| Leo Arias (elopio) wrote : | # |
Every failed test is an opportunity to clean up the test and make it more readable.
Take a look at:
https:/
In there, I removed the initial check because it has nothing to do with the name of the test. It should be tested elsewhere that when you open the app, no contacts are shown.
Also, I moved the selection to the page helper object. Every time you have a select single in the test body, there's something wrong. If we move them to the page object it will be easier to read and easier to maintain.
After the cleanup, it seems to me that this is a good candidate to be turned into a QML test. Here we are only checking that a button is not shown if certain conditions are not met. That's purely UI, it has nothing to do with a user story so autopilot seems like a tool too big and slow for it. Do you agree?
Finally, the name of the test still sounds wrong: test_import_
We are not checking that the item is disabled. We are checking that it is not visible.
| Leo Arias (elopio) wrote : | # |
ah, and this might conflicts with federico's flake8 branch:
https:/
It would be safer using that branch as a prerequisite.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:424
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:426
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:429
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:423 jenkins. qa.ubuntu. com/job/ address- book-app- ci/792/ jenkins. qa.ubuntu. com/job/ address- book-app- vivid-i386- ci/95 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2225 jenkins. qa.ubuntu. com/job/ generic- mediumtests- vivid/801/ console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 1953 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2223 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2223/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 19619 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-vivid/ 641/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-amd64/ 960 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-amd64/ 960/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/address- book-app- ci/792/ rebuild
http://