Merge lp:~cimi/unity8/fix-single-preview-ap-tests into lp:unity8

Proposed by Andrea Cimitan
Status: Merged
Approved by: Michał Sawicz
Approved revision: 2215
Merged at revision: 2252
Proposed branch: lp:~cimi/unity8/fix-single-preview-ap-tests
Merge into: lp:unity8
Diff against target: 31 lines (+1/-4)
2 files modified
tests/autopilot/unity8/dash.py (+1/-2)
tests/autopilot/unity8/shell/tests/test_helpers.py (+0/-2)
To merge this branch: bzr merge lp:~cimi/unity8/fix-single-preview-ap-tests
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
Unity8 CI Bot continuous-integration Approve
Review via email: mp+288280@code.launchpad.net

Commit message

Update AP tests for new single preview

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
n
 * Did you perform an exploratory manual test run of your code change and any related functionality?
y
 * Did you make sure that your branch does not contain spurious tags?
y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2215
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/609/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/342
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial,testname=qmluitests.sh/342
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/342
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/801
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/817
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/817
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/815
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/815/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/815
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/815/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/815
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/815/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/815
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/815/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/815
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/815/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/815
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/815/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/609/rebuild

review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
CI happy
 * Did CI run pass? If not, please explain why.
Yup
 * Did you make sure that the branch does not contain spurious tags?
Y

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/unity8/dash.py'
2--- tests/autopilot/unity8/dash.py 2015-12-11 09:10:01 +0000
3+++ tests/autopilot/unity8/dash.py 2016-03-07 11:58:31 +0000
4@@ -211,8 +211,7 @@
5 self.get_root_instance().select_single(
6 objectName='processingIndicator').visible.wait_for(False)
7 return preview_list.select_single(
8- Preview, objectName='preview{}'.format(
9- preview_list.initialIndex))
10+ Preview, objectName='preview')
11
12 @autopilot_logging.log_action(logger.debug)
13 def click_scope_item(self, category, title, press_duration=0.10):
14
15=== modified file 'tests/autopilot/unity8/shell/tests/test_helpers.py'
16--- tests/autopilot/unity8/shell/tests/test_helpers.py 2015-09-03 07:44:51 +0000
17+++ tests/autopilot/unity8/shell/tests/test_helpers.py 2016-03-07 11:58:31 +0000
18@@ -117,13 +117,11 @@
19 def test_open_preview(self):
20 preview = self.generic_scope.open_preview('0', 'Title.0.0')
21 self.assertIsInstance(preview, dash_helpers.Preview)
22- self.assertTrue(preview.isCurrent)
23
24 def test_open_preview_of_non_visible_item(self):
25 """Open an item that requires swiping to make it visible."""
26 preview = self.generic_scope.open_preview('2', 'Title.2.0')
27 self.assertIsInstance(preview, dash_helpers.Preview)
28- self.assertTrue(preview.isCurrent)
29
30
31 class DashAppsHelperTestCase(tests.DashBaseTestCase):

Subscribers

People subscribed via source and target branches