diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-22 12:01:45 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-22 12:01:45 -0500 |
commit | dd322344959c31ebbda939bf74547ed85e3233f9 (patch) | |
tree | 6d5ff55c923f183f582bb4b350eb8b560369c8c8 | |
parent | 79a3d892c39ba831e44871ca99a064084bd792e9 (diff) | |
download | ayatana-indicator-power-dd322344959c31ebbda939bf74547ed85e3233f9.tar.gz ayatana-indicator-power-dd322344959c31ebbda939bf74547ed85e3233f9.tar.bz2 ayatana-indicator-power-dd322344959c31ebbda939bf74547ed85e3233f9.zip |
add manual test case for using the indicator-power-service-cmdline-battery test utility
-rw-r--r-- | tests/manual | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/manual b/tests/manual index d3a22e1..a542cac 100644 --- a/tests/manual +++ b/tests/manual @@ -22,3 +22,20 @@ Test-case indicator-power/unity8-items-check <dd>The menu is populated with items</dd> </dl> +Test-case indicator-power/low-battery-popups +<dl> + <dt>Open a terminal</dt> + <dt>Stop the currently-running power indicator: "stop indicator-power"</dt> + <dt>Start the fake battery harness in the tests/build/ directory: "indicator-power-service-cmdline-battery"</dt> + <dd>Battery indicator should update, showing a discharging battery with a 50% charge</dd> + <dt>Type: "10" (no quotes) and press Enter</dt> + <dd>A popup should appear saying 'Battery low - 10% charge remaining'</dd> + <dd>Battery indicator's icon should show a low charge</dd> + <dd>Battery indicator's "Charge level" menuitem should show a 10% charge</dd> + <dt>Type: "9" (no quotes) and press Enter</dt> + <dd>The 'Battery low' popup should NOT appear, since we've already been notified</dd> + <dd>Battery indicator's "Charge level" menuitem should show a 9% charge</dd> + <dt>Type: "5" (no quotes) and press Enter</dt> + <dd>No 'Battery low' popup SHOULD appear, since 5% is the next warning threshold</dd> + <dd>Battery indicator's "Charge level" menuitem should show a 5% charge</dd> +</dl> |