diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-11 14:17:03 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-09-11 14:17:03 -0500 |
commit | 25cc0e4016957746818f97074ee52b068a4f765a (patch) | |
tree | e113911554a418423f1628f33df49ca392cb5bfd /tests | |
parent | 7eb2466645ca42fa60cc972199a0967d29066516 (diff) | |
download | ayatana-indicator-power-25cc0e4016957746818f97074ee52b068a4f765a.tar.gz ayatana-indicator-power-25cc0e4016957746818f97074ee52b068a4f765a.tar.bz2 ayatana-indicator-power-25cc0e4016957746818f97074ee52b068a4f765a.zip |
run manual tests through test-case-format tidier
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/tests/manual b/tests/manual index 6029884..73d3211 100644 --- a/tests/manual +++ b/tests/manual @@ -7,67 +7,67 @@ You'll need to stop the current indicator-power-service before starting the test Example: - $ stop indicator-power # stop the real indicator-power service - $ build/tests/indicator-power-service-cmdline-battery # start the test service - 50 # sets the fake battery level to 50% - 30 # sets the fake battery level to 30% - charging # sets the fake battery to charging - discharging # sets the fake battery to discharging - ctrl-c # exits the test service - $ start indicator-power # restart the real service +$ stop indicator-power # stop the real indicator-power service +$ build/tests/indicator-power-service-cmdline-battery # start the test service +50 # sets the fake battery level to 50% +30 # sets the fake battery level to 30% +charging # sets the fake battery to charging +discharging # sets the fake battery to discharging +ctrl-c # exits the test service +$ start indicator-power # restart the real service Test-case indicator-power/unity7-items-check <dl> - <dt>Log in to a Unity 7 user session</dt> - <dt>Go to the panel and click on the Power indicator</dt> - <dd>Ensure there are items in the menu</dd> + <dt>Log in to a Unity 7 user session</dt> + <dt>Go to the panel and click on the Power indicator</dt> + <dd>Ensure there are items in the menu</dd> </dl> Test-case indicator-power/unity7-greeter-items-check <dl> - <dt>Start a system and wait for the greeter or logout of the current user session</dt> - <dt>Go to the panel and click on the Power indicator</dt> - <dd>Ensure there are items in the menu</dd> + <dt>Start a system and wait for the greeter or logout of the current user session</dt> + <dt>Go to the panel and click on the Power indicator</dt> + <dd>Ensure there are items in the menu</dd> </dl> Test-case indicator-power/unity8-items-check <dl> - <dt>Login to a user session running Unity 8</dt> - <dt>Pull down the top panel until it sticks open</dt> - <dt>Navigate through the tabs until "Battery" is shown</dt> - <dd>Battery is at the top of the menu</dd> - <dd>The menu is populated with items</dd> + <dt>Login to a user session running Unity 8</dt> + <dt>Pull down the top panel until it sticks open</dt> + <dt>Navigate through the tabs until "Battery" is shown</dt> + <dd>Battery is at the top of the menu</dd> + <dd>The menu is populated with items</dd> </dl> Test case indicator-power/detect-charging-or-discharging <dl> - <dt>Begin with a discharging device</dt> - <dd>The indicator's icon should denote a discharging battery; e.g. an icon without the '⚡' sign</dd> - <dt>Plug it in so that its battery is charging</dt> - <dd>The indicator's icon should change to show a charging battery<dd> - <dt>Unplug it again</dt> - <dd>The indicator's icon should revert back to the same one in step one</dd> + <dt>Begin with a discharging device</dt> + <dd>The indicator's icon should denote a discharging battery; e.g. an icon without the '⚡' sign</dd> + <dt>Plug it in so that its battery is charging</dt> + <dd>The indicator's icon should change to show a charging battery</dd> + <dt>Unplug it again</dt> + <dd>The indicator's icon should revert back to the same one in step one</dd> </dl> Test case indicator-power/low-power-notifications <dl> - <dt>Wait for the system's battery level to drop to 10% (or fake it, see 'Notes on Battery Testing' above)</dt> - <dd>A notification should appear</dd> - <dd>Its title should read "Battery Low"</dd> - <dd>Its text should read "10% charge remaining"</dd> - <dd>The icon should be a low power icon</dd> - <dd>It should have two actions, "Battery settings" and "OK". </dd> - <dt>Tap OK to dismiss the popup</dt> - <dt>Wait (or fake) the battery level to drop to 9%</dt> - <dd>No new notification should appear -- we're still at the "Low" level </dd> - <dt>Wait (or fake) the battery level to drop to 4%</dt> - <dd>A notification should appear</dd> - <dd>Its title should read "Battery Critical"</dd> - <dd>Its text should read "4% charge remaining"</dd> - <dd>The icon should be a critical power icon</dd> - <dd>It should have two actions, "Battery settings" and "OK". </dd> - <dt>Tap 'Battery Settings'</dt> - <dd>ubuntu-system-settings should be launched to the Battery page </dd> + <dt>Wait for the system's battery level to drop to 10% (or fake it, see 'Notes on Battery Testing' above)</dt> + <dd>A notification should appear</dd> + <dd>Its title should read "Battery Low"</dd> + <dd>Its text should read "10% charge remaining"</dd> + <dd>The icon should be a low power icon</dd> + <dd>It should have two actions, "Battery settings" and "OK". </dd> + <dt>Tap OK to dismiss the popup</dt> + <dt>Wait (or fake) the battery level to drop to 9%</dt> + <dd>No new notification should appear -- we're still at the "Low" level </dd> + <dt>Wait (or fake) the battery level to drop to 4%</dt> + <dd>A notification should appear</dd> + <dd>Its title should read "Battery Critical"</dd> + <dd>Its text should read "4% charge remaining"</dd> + <dd>The icon should be a critical power icon</dd> + <dd>It should have two actions, "Battery settings" and "OK". </dd> + <dt>Tap 'Battery Settings'</dt> + <dd>ubuntu-system-settings should be launched to the Battery page </dd> </dl> |