Merge lp://staging/~canonical-platform-qa/messaging-app/new_helpers_tests into lp://staging/messaging-app

Proposed by Brendan Donegan
Status: Work in progress
Proposed branch: lp://staging/~canonical-platform-qa/messaging-app/new_helpers_tests
Merge into: lp://staging/messaging-app
Diff against target: 110 lines (+67/-1)
3 files modified
tests/autopilot/messaging_app/emulators.py (+4/-0)
tests/autopilot/messaging_app/helpers.py (+14/-0)
tests/autopilot/messaging_app/tests/test_messaging.py (+49/-1)
To merge this branch: bzr merge lp://staging/~canonical-platform-qa/messaging-app/new_helpers_tests
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Leo Arias (community) Needs Fixing
Gustavo Pichorim Boiko Pending
Review via email: mp+226825@code.staging.launchpad.net

This proposal supersedes a proposal from 2014-07-11.

Description of the change

This branch contains some new tests which exercise the helpers that I created to aid in the automation of the 'Add number to contact from message' user experience. To some extent they replicate the intent of that test, but do not actually concern themselves with the integration of the messaging-app and address-book-app - they just check that address-book-app does the right thing in the case of each function.

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
Leo Arias (elopio) wrote : Posted in a previous version of this proposal

102 + address_book = get_proxy_object_for_existing_process(
103 + pid=helpers.get_pid_by_name('address-book-app'))
104 + self.assertNotEqual(address_book, None)

we shouldn't add address book as a dependency to those tests.
what we should do is to check that url-dispatcher has received the right message.

review: Needs Fixing (code review)
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
Gustavo Pichorim Boiko (boiko) wrote : Posted in a previous version of this proposal

The test_add_phone_number_to_new_contact needs to be disabled on desktop as it only works on the device.

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

78 + self.main_view.click_add_button()
79 + self.main_view.click_add_to_contact_button()
80 + add_to_contact = self.main_view.get_add_phone_number_to_contact_page()

Please wrap this in a higher level helper called add_phone_number_to_existing_contact.

98 + self.main_view.click_add_button()
103 + self.main_view.click_create_new_contact_button()

And this into one called something like go_to_create_new_contact.

104 + address_book = get_proxy_object_for_existing_process(
105 + pid=helpers.get_pid_by_name('address-book-app'))

Please remove the dependency on address-book-app by copying the fake url dispatcher, or by waiting for url-dispatcher-testability to land.

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

Unmerged revisions

141. By Brendan Donegan

Add skipIf to test_add_phone_number_to_new_contact as the test is not supported on the desktop

140. By Brendan Donegan

Make sure that address-book-app is launched when we try to add a number to a new contact

139. By Brendan Donegan

Remove proxy for AddPhoneNumberToContactPage because it isn't ready to be tested.

138. By Brendan Donegan

Add tests for toolbar button helpers

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