From 2703378ec189bfb3fd6f664ef27640e829edafbc Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Wed, 1 Jun 2016 17:36:54 +0200 Subject: lvc: wait for the right image to vanish --- cucumber/features/step_definitions/common_steps.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index bfdc0028..fa000fe8 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -468,7 +468,8 @@ Given /^I select the ([A-Z][[:alpha:]]*) task$/ do |desktop| menu.index(desktop).times do @screen.type(Sikuli::Key.DOWN) end - @screen.wait(diui_png("Desktop+" + desktop), 10 * PATIENCE) + expected_result = "Desktop+" + desktop + @screen.wait(diui_png(expected_result), 10 * PATIENCE) if "gui" == @ui_mode @screen.wait(diui_png("CONTINUEunselected"), 10 * PATIENCE) @@ -476,7 +477,7 @@ Given /^I select the ([A-Z][[:alpha:]]*) task$/ do |desktop| @screen.wait(diui_png("CONTINUEselected"), 10 * PATIENCE) end @screen.type(Sikuli::Key.ENTER) - @screen.waitVanish(diui_png("Desktop+Gnome"), 10 * PATIENCE) + @screen.waitVanish(diui_png(expected_result), 10 * PATIENCE) end Given /^I wait while the bulk of the packages are installed$/ do -- cgit v1.2.3-54-g00ecf