Test-case indicator-power/unity7-items-check
- Log in to a Unity 7 user session
- Go to the panel and click on the Power indicator
- Ensure there are items in the menu
Test-case indicator-power/unity7-greeter-items-check
- Start a system and wait for the greeter or logout of the current user session
- Go to the panel and click on the Power indicator
- Ensure there are items in the menu
Test-case indicator-power/unity8-items-check
- Login to a user session running Unity 8
- Pull down the top panel until it sticks open
- Navigate through the tabs until "Battery" is shown
- Battery is at the top of the menu
- 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