From dd322344959c31ebbda939bf74547ed85e3233f9 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 22 Jul 2014 12:01:45 -0500 Subject: add manual test case for using the indicator-power-service-cmdline-battery test utility --- tests/manual | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/manual') 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
The menu is populated with items
+Test-case indicator-power/low-battery-popups +
+
Open a terminal
+
Stop the currently-running power indicator: "stop indicator-power"
+
Start the fake battery harness in the tests/build/ directory: "indicator-power-service-cmdline-battery"
+
Battery indicator should update, showing a discharging battery with a 50% charge
+
Type: "10" (no quotes) and press Enter
+
A popup should appear saying 'Battery low - 10% charge remaining'
+
Battery indicator's icon should show a low charge
+
Battery indicator's "Charge level" menuitem should show a 10% charge
+
Type: "9" (no quotes) and press Enter
+
The 'Battery low' popup should NOT appear, since we've already been notified
+
Battery indicator's "Charge level" menuitem should show a 9% charge
+
Type: "5" (no quotes) and press Enter
+
No 'Battery low' popup SHOULD appear, since 5% is the next warning threshold
+
Battery indicator's "Charge level" menuitem should show a 5% charge
+
-- cgit v1.2.3