aboutsummaryrefslogtreecommitdiff
path: root/tests/test-service.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-24 10:19:00 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-24 10:19:00 +0000
commit0638860f575fda1a3531d236a3803bcaff271fbe (patch)
tree4a7d0f45684070c6cecb38d11ec5a94a11734a71 /tests/test-service.cc
parent1db25fd1b84bcc592b1da794e81592c2942ef84a (diff)
parente5f30358325683fe338137fc0cc71541e73c81be (diff)
downloadayatana-indicator-session-0638860f575fda1a3531d236a3803bcaff271fbe.tar.gz
ayatana-indicator-session-0638860f575fda1a3531d236a3803bcaff271fbe.tar.bz2
ayatana-indicator-session-0638860f575fda1a3531d236a3803bcaff271fbe.zip
Don't show a red icon in indicator-session when there's an online user account error. Fixes: 1206550
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r--tests/test-service.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc
index 20c70f5..ab84459 100644
--- a/tests/test-service.cc
+++ b/tests/test-service.cc
@@ -616,7 +616,7 @@ TEST_F (ServiceTest, OnlineAccountError)
check_last_command_is ("online-accounts");
// check that the header's icon and a11y adjusted to the error state
- check_header ("", "system-devices-panel-alert", "System (Attention Required)");
+ check_header ("", "system-devices-panel", "System");
// cleanup
g_settings_reset (mock_settings, error_key);
@@ -756,12 +756,7 @@ TEST_F (ServiceTest, User)
g_settings_set_boolean (indicator_settings, show_name_key, true);
wait_for_signal (action_group, "action-state-changed");
check_header ("Third Doctor", "system-devices-panel", "System, Third Doctor");
- g_settings_set_boolean (mock_settings, error_key, true);
- wait_for_signal (action_group, "action-state-changed");
- check_header ("Third Doctor", "system-devices-panel-alert", "System, Third Doctor (Attention Required)");
- g_settings_reset (mock_settings, error_key);
g_settings_reset (indicator_settings, show_name_key);
- wait_for_menu_resync ();
// try setting the max user count to 2...
// since troughton has the fewest logins, he should get culled