diff options
Diffstat (limited to 'tests/aszlig')
-rw-r--r-- | tests/aszlig/programs/flameshot.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/aszlig/programs/flameshot.nix b/tests/aszlig/programs/flameshot.nix index 35e1d570..8dc5e33d 100644 --- a/tests/aszlig/programs/flameshot.nix +++ b/tests/aszlig/programs/flameshot.nix @@ -19,8 +19,11 @@ machine.wait_for_x() machine.wait_for_file("/home/alice/.Xauthority") machine.succeed("xauth merge ~alice/.Xauthority") - machine.succeed('su -c "DISPLAY=:0.0 flameshot gui" - alice &') - machine.wait_for_text('(?i)capture the screen') + machine.succeed('su -c "DISPLAY=:0.0 flameshot gui" - alice >&2 &') + machine.wait_for_text('(?i)save screenshot') machine.screenshot('flameshot') + machine.send_key("ctrl-s") + machine.wait_until_succeeds('ls -1 ~alice/screenshots/ | grep -q png') + machine.screenshot('flameshot_done') ''; } |