summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/common_steps.rb
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-11-28 14:24:42 +0100
committeranonym <anonym@riseup.net>2016-11-28 14:24:42 +0100
commit0667f678ae5431c6e8b8ba757798cec77b04afc5 (patch)
tree27ca37f6821312c8056c916b877dd78c1854ce14 /features/step_definitions/common_steps.rb
parent61ea7734c1a10f6d4a6864f9c77bae78d6e50951 (diff)
Do not click outside of the Sikuli screen.
The x-coordinates are in the range [0, @screen.w - 1] so we were outside of it by one pixel. Thanks to SikuliX for warning about this! :)
Diffstat (limited to 'features/step_definitions/common_steps.rb')
-rw-r--r--features/step_definitions/common_steps.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 798aee6..5966d5c 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -5,7 +5,7 @@ def post_vm_start_hook
# focus to virt-viewer or similar) so we do that now rather than
# having an important click lost. The point we click should be
# somewhere where no clickable elements generally reside.
- @screen.click_point(@screen.w, @screen.h/2)
+ @screen.click_point(@screen.w - 1, @screen.h/2)
end
def activate_filesystem_shares