Merge lp:~macslow/unity8/modal-snap-decision-on-greeter-fix-1378827 into lp:unity8

Proposed by Mirco Müller
Status: Merged
Approved by: Michael Terry
Approved revision: 1370
Merged at revision: 1394
Proposed branch: lp:~macslow/unity8/modal-snap-decision-on-greeter-fix-1378827
Merge into: lp:unity8
Diff against target: 50 lines (+7/-6)
2 files modified
qml/Shell.qml (+1/-1)
tests/autopilot/unity8/shell/tests/test_notifications.py (+6/-5)
To merge this branch: bzr merge lp:~macslow/unity8/modal-snap-decision-on-greeter-fix-1378827
Reviewer Review Type Date Requested Status
Michael Terry Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+239376@code.launchpad.net

Commit message

Also use modal nature of snap-decision notifications when greeter/lockscreen is shown. This fixes LP: #1378827.

Description of the change

Also use modal nature of snap-decision notifications when greeter/lockscreen is shown. This fixes LP: #1378827.

* Are there any related MPs required for this MP to build/function as expected? Please list.
No.

* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.

* Did you make sure that your branch does not contain spurious tags?
Yes.

* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Not applicable.

* If you changed the UI, has there been a design review?
Yes.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

LGTM

 * Did you perform an exploratory manual test run of the code change and any related functionality?
 Yes

 * Did CI run pass? If not, please explain why.
 No, usual autopilot problems

 * Did you make sure that the branch does not contain spurious tags?
 Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Shell.qml'
2--- qml/Shell.qml 2014-10-13 15:41:29 +0000
3+++ qml/Shell.qml 2014-10-23 14:39:54 +0000
4@@ -693,7 +693,7 @@
5 Rectangle {
6 id: modalNotificationBackground
7
8- visible: notifications.useModal && !greeter.shown && (notifications.state == "narrow")
9+ visible: notifications.useModal && (notifications.state == "narrow")
10 color: "#000000"
11 anchors.fill: parent
12 opacity: 0.9
13
14=== modified file 'tests/autopilot/unity8/shell/tests/test_notifications.py'
15--- tests/autopilot/unity8/shell/tests/test_notifications.py 2014-08-21 14:12:27 +0000
16+++ tests/autopilot/unity8/shell/tests/test_notifications.py 2014-10-23 14:39:54 +0000
17@@ -248,7 +248,7 @@
18 self.assert_notification_action_id_was_called("action_accept")
19
20 def test_modal_sd_without_greeter(self):
21- """Snap-decision should block input to shell without greeter."""
22+ """Snap-decision should block input to shell without greeter/lockscreen."""
23 unity_proxy = self.launch_unity()
24 unlock_unity(unity_proxy)
25
26@@ -295,7 +295,7 @@
27 self.assert_notification_action_id_was_called("action_accept")
28
29 def test_modal_sd_with_greeter(self):
30- """A snap-decision should not block input to the greeter beneath it."""
31+ """A snap-decision should block input to the greeter/lockscreen beneath it."""
32 self.launch_unity()
33
34 summary = "Incoming file"
35@@ -322,11 +322,12 @@
36 hints
37 )
38
39- # verify that we can swipe away the greeter (interact with the "shell")
40+ # verify that we cannot reveal the launcher (no longer interact with
41+ # the shell)
42 time.sleep(1)
43 self.main_window.show_dash_swiping()
44- greeter = self.main_window.get_greeter()
45- self.assertThat(greeter.shown, Eventually(Equals(False)))
46+ self.assertThat(
47+ self.main_window.is_launcher_open, Eventually(Equals(False)))
48
49 # verify and interact with the triggered snap-decision notification
50 notify_list = self._get_notifications_list()

Subscribers

People subscribed via source and target branches