1 Then /^there is no screenshot in the live user's Pictures directory$/ do
2 pictures_directory = "/home/#{LIVE_USER}/Pictures"
5 "find '#{pictures_directory}' -name 'Screenshot*.png' -maxdepth 1"
7 "Existing screenshots were found in the live user's Pictures directory."
11 Then /^a screenshot is saved to the live user's Pictures directory$/ do
12 pictures_directory = "/home/#{LIVE_USER}/Pictures"
13 try_for(10, msg: "No screenshot was created in #{pictures_directory}") do
15 "find '#{pictures_directory}' -name 'Screenshot*.png' -maxdepth 1"
20 When /^the "(.+)" notification is sent$/ do |title|
21 $vm.execute_successfully("notify-send '#{title}'", user: LIVE_USER)
24 Then /^the "(.+)" notification is shown to the user$/ do |title|
25 Dogtail::Application.new('gnome-shell').child(title)