~mmcg069/software-center/reviews-and-netstatus

« back to all changes in this revision

Viewing changes to test/test_gui_buy_something.py

  • Committer: Matthew McGowan
  • Date: 2011-01-21 21:45:18 UTC
  • mfrom: (1354.2.56 trunk)
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110121214518-z1a23pr59zruo6y3
merge w trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
            u"Buy\u2026")
88
88
        # click the "Buy" button to initiate a purchase
89
89
        self.app.available_pane.app_details_view.action_bar.button.clicked()
 
90
        self._p()
 
91
        time.sleep(1)
90
92
        # check that the purchase pane is displayed
91
93
        self.assertEqual(str(self.app.available_pane.navigation_bar.get_parts()),
92
94
                         "[Get Software, Search Results, Hello X Adventure, Buy]")
93
95
        self._p()
94
 
        time.sleep(3)
 
96
        time.sleep(1)
95
97
        self._p()
96
98
        # simulate a successful purchase in the UI by firing a purchase-succeeded
97
99
        self.app.available_pane.purchase_view.emit("purchase-succeeded")
98
 
        self._p()
99
 
        time.sleep(3)
100
 
        self._p()
 
100
        time.sleep(1)
 
101
        self._p()
 
102
        time.sleep(1)
101
103
        # check that the purchase pane is removed
102
104
        self.assertEqual(str(self.app.available_pane.navigation_bar.get_parts()),
103
105
                         "[Get Software, Search Results, Hello X Adventure]")