summaryrefslogtreecommitdiffstats
path: root/cucumber/features/step_definitions
diff options
context:
space:
mode:
Diffstat (limited to 'cucumber/features/step_definitions')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 49fd5eb6..188c6a21 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -552,7 +552,16 @@ Given /^I wait for the reboot$/ do
end
Given /^I should see a ([a-zA-Z]*) Login prompt$/ do |style|
- @screen.waitAny(["DebianLoginPrompt"+style+".png","DebianLoginPromptXFCE_2.png"], 20 * 60) # FIXME - this _2 image should be configurable
+ def loginPrompt
+ {
+ 'XFCE' => [ 'DebianLoginPromptXFCE.png', 'DebianLoginPromptXFCE_d9.png' ],
+ 'KDE' => [ 'DebianLoginPromptKDE.png', 'DebianLoginPromptKDE_d9.png' ],
+ 'LXDE' => [ 'DebianLoginPromptLXDE.png', 'DebianLoginPromptLXDE_d9.png' ],
+ 'VT' => [ 'DebianLoginPromptVT.png' ],
+ }
+ end
+
+ @screen.waitAny(loginPrompt[style], 20 * 60)
end
def bootsplash