1import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "yabar";
3 meta.maintainers = [ ];
4
5 nodes.machine = {
6 imports = [ ./common/x11.nix ./common/user-account.nix ];
7
8 test-support.displayManager.auto.user = "bob";
9
10 programs.yabar.enable = true;
11 programs.yabar.bars = {
12 top.indicators.date.exec = "YABAR_DATE";
13 };
14 };
15
16 testScript = ''
17 machine.start()
18 machine.wait_for_x()
19
20 # confirm proper startup
21 machine.wait_for_unit("yabar.service", "bob")
22 machine.sleep(10)
23 machine.wait_for_unit("yabar.service", "bob")
24
25 machine.screenshot("top_bar")
26 '';
27})