From 42a98b06ff710b595e562f53d81cc59e5ed28a02 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Wed, 1 Jun 2016 20:00:15 +0200 Subject: lvc: tweak clicks to avoid inadvertent selection of desktops --- cucumber/features/step_definitions/common_steps.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index 2ac8ab62..49fd5eb6 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/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 @@ -295,6 +295,7 @@ Given /^I select British English$/ do @screen.type(Sikuli::Key.UP) @screen.wait(diui_png("UnitedKingdom"), 10 * PATIENCE) @screen.type(Sikuli::Key.ENTER) + @screen.click_point(@screen.w-2, @screen.h*2/3) @screen.wait(diui_png("BritishEnglish"), 10 * PATIENCE) @screen.type(Sikuli::Key.ENTER) end -- cgit v1.2.3-54-g00ecf