summaryrefslogtreecommitdiffstats
path: root/cucumber/features
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-06-01 17:36:54 +0200
committerPhilip Hands <phil@hands.com>2016-06-01 20:02:22 +0200
commit2703378ec189bfb3fd6f664ef27640e829edafbc (patch)
tree4a44b222ff1d8d88b90c9fe883177e4ad71d5918 /cucumber/features
parent8c58ee99dd82b7efd86dc6b1a6b788a149abaf53 (diff)
downloadjenkins.debian.net-2703378ec189bfb3fd6f664ef27640e829edafbc.tar.xz
lvc: wait for the right image to vanish
Diffstat (limited to 'cucumber/features')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb5
1 files 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