about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-02-09 23:02:33 +0100
committeraszlig <aszlig@nix.build>2022-02-09 23:12:55 +0100
commit1f8d489b66fc976bfac38277d0966bbd25c0c6d5 (patch)
tree837317589f614402d1e6288e45eea37bf87f2f43 /tests
parent33f7b7172cf5623942eefb215e7d9a440bf5dd3e (diff)
flameshot: Rebase patch against version 11.0.0
This is a major upstream release which deprecates a few of our options
but also made our patch a little longer because the tools we remove are
now defined in multiple places.

The patch itself is pretty much doing the same things as before we do
have one thing that is different, which is that we now create the
savePath directory if it doesn't exist. I do know that this doesn't
necessary need to be a directory but in the way I'm using flameshot it
is, so I don't care ;-)

While at it, I also disabled the checkForUpdates option, because this
has annoyed me for some time and I really don't care if the version is
the latest for a screenshot utility.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'tests')
-rw-r--r--tests/aszlig/programs/flameshot.nix7
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')
   '';
 }