~ken-vandine/address-book-app/add_profile

« back to all changes in this revision

Viewing changes to tests/autopilot/address_book_app/tests/test_multiple_pick_mode.py

  • Committer: CI bot
  • Author(s): Tarmac, Renato Araujo Oliveira Filho
  • Date: 2014-06-16 13:12:46 UTC
  • mfrom: (169.1.22 release-2014-06-12)
  • Revision ID: ps-jenkins@lists.canonical.com-20140616131246-rzqpkq95ut0j8gka
Implemented contact share.
Replaced ContentHub API with QML API.
Removed ContactSearchListView component.
Moved ContactSimpleListView to the private API.
Added documentation for ContactListView properties.
Created "contactNameFilter" into ContactListView.
Update contact list visuals.
Implemented fast scroll.
Implemented contact search.
Initial refactor of autopilot tests.
Used new SDK header. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        super(TestMultiplePickerMode, self).setUp()
23
23
 
24
24
    def test_select_contacts(self):
25
 
        pick_page = self.main_window.get_contact_list_pick_page()
 
25
        pick_page = self.app.main_window.get_contact_list_pick_page()
26
26
        contacts = pick_page.select_many("ContactDelegate")
27
 
        # all selection marks should be visible
 
27
 
 
28
        # all selection marks should be invisible
28
29
        selection_marks = []
29
30
        mark_to_contacts = {}
30
31
        for contact in contacts:
31
32
            if (contact.visible):
32
33
                mark = contact.select_single("QQuickRectangle", objectName="selectionMark")
33
 
                self.assertThat(mark.visible, Eventually(Equals(True)))
 
34
                self.assertThat(mark.visible, Eventually(Equals(False)))
34
35
                selection_marks.append(mark)
35
36
                mark_to_contacts[mark] = contact
36
37