mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-24 02:00:41 +03:00
nixos/lomiri: Add power indicator
This commit is contained in:
parent
6539b60f0b
commit
98c84e67e4
2 changed files with 8 additions and 1 deletions
|
@ -72,6 +72,7 @@ in {
|
||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
ayatana-indicator-datetime
|
ayatana-indicator-datetime
|
||||||
ayatana-indicator-messages
|
ayatana-indicator-messages
|
||||||
|
ayatana-indicator-power
|
||||||
ayatana-indicator-session
|
ayatana-indicator-session
|
||||||
]) ++ (with pkgs.lomiri; [
|
]) ++ (with pkgs.lomiri; [
|
||||||
telephony-service
|
telephony-service
|
||||||
|
|
|
@ -290,13 +290,14 @@ in {
|
||||||
# There's a test app we could use that also displays their contents, but it's abit inconsistent.
|
# There's a test app we could use that also displays their contents, but it's abit inconsistent.
|
||||||
with subtest("ayatana indicators work"):
|
with subtest("ayatana indicators work"):
|
||||||
mouse_click(735, 0) # the cog in the top-right, for the session indicator
|
mouse_click(735, 0) # the cog in the top-right, for the session indicator
|
||||||
machine.wait_for_text(r"(Notifications|Time|Date|System)")
|
machine.wait_for_text(r"(Notifications|Battery|Time|Date|System)")
|
||||||
machine.screenshot("indicators_open")
|
machine.screenshot("indicators_open")
|
||||||
|
|
||||||
# Indicator order within the menus *should* be fixed based on per-indicator order setting
|
# Indicator order within the menus *should* be fixed based on per-indicator order setting
|
||||||
# Session is the one we clicked, but the last we should test (logout). Go as far left as we can test.
|
# Session is the one we clicked, but the last we should test (logout). Go as far left as we can test.
|
||||||
machine.send_key("left")
|
machine.send_key("left")
|
||||||
machine.send_key("left")
|
machine.send_key("left")
|
||||||
|
machine.send_key("left")
|
||||||
# Notifications are usually empty, nothing to check there
|
# Notifications are usually empty, nothing to check there
|
||||||
|
|
||||||
with subtest("lomiri indicator network works"):
|
with subtest("lomiri indicator network works"):
|
||||||
|
@ -304,6 +305,11 @@ in {
|
||||||
machine.wait_for_text(r"(Flight|Wi-Fi)")
|
machine.wait_for_text(r"(Flight|Wi-Fi)")
|
||||||
machine.screenshot("indicators_network")
|
machine.screenshot("indicators_network")
|
||||||
|
|
||||||
|
with subtest("ayatana indicator power works"):
|
||||||
|
machine.send_key("right")
|
||||||
|
machine.wait_for_text(r"(Charge|Battery settings)")
|
||||||
|
machine.screenshot("indicators_power")
|
||||||
|
|
||||||
with subtest("ayatana indicator datetime works"):
|
with subtest("ayatana indicator datetime works"):
|
||||||
machine.send_key("right")
|
machine.send_key("right")
|
||||||
machine.wait_for_text("Time and Date Settings")
|
machine.wait_for_text("Time and Date Settings")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue