~elopio/ubuntu-filemanager-app/fix1188732-test_open_directory

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_filemanager_app/tests/test_filemanager.py

  • Committer: Leo Arias
  • Date: 2013-06-14 05:20:24 UTC
  • Revision ID: leo.arias@canonical.com-20130614052024-0sj6r1usaoln7jzn
Added the ubuntusdk emulator. Test is now working.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        self._patch_home()
28
28
        super(TestMainWindow, self).setUp()
29
29
        self.assertThat(
30
 
            self.main_window.get_qml_view().visible, Eventually(Equals(True)))
 
30
            self.ubuntusdk.get_qml_view().visible, Eventually(Equals(True)))
31
31
 
32
32
    def _patch_home(self):
33
33
        temp_dir = tempfile.mkdtemp()
42
42
        # Currently, we need to open again the home folder to show the newly
43
43
        # created one. See bug #1190676.
44
44
        # TODO when the bug is fixed, remove the next line.
45
 
        self.pointing_device.click_object(self.main_window.get_home_button())
 
45
        self.ubuntusdk.click_toolbar_button('Home')
46
46
 
47
47
        first_folder = self.main_window.get_folder(0)
48
48
        self.tap_item(first_folder)