summaryrefslogtreecommitdiffstats
path: root/cucumber/features/step_definitions/common_steps.rb
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-05-14 19:48:56 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-14 19:53:41 +0200
commit306b243742aab4f21925cbd4d171702fb56e9083 (patch)
tree41b3a151534c43ee28a519d22a9e985d3211480e /cucumber/features/step_definitions/common_steps.rb
parent7871b3fb126d13cacc4d0c91844f0e5846cb0357 (diff)
downloadjenkins.debian.net-306b243742aab4f21925cbd4d171702fb56e9083.tar.xz
lvc: use XFCE as the Desktop target for now
Diffstat (limited to 'cucumber/features/step_definitions/common_steps.rb')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index a4c62210..810a5058 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -440,15 +440,17 @@ Given /^in ([a-z]*) mode I unset the Desktop and Print tasks$/ do |ui_mode|
@screen.type(Sikuli::Key.ENTER)
end
-Given /^in ([a-z]*) mode I select the Desktop task$/ do |ui_mode|
+Given /^in ([a-z]*) mode I select the ([a-zA-Z]*) Desktop task$/ do |ui_mode,desktop|
@screen.wait(diui_png("DesktopTask_Yes",ui_mode), 2 * 60)
# deal with post-snapshot screen flicker -- FIXME this needs to be fixed via looking to see if the remote login is working before we look at the screen
debug_log("debug: Found DesktopTask_Yes, pausing for 20s", :color => :blue)
sleep(20)
- @screen.type(Sikuli::Key.DOWN+Sikuli::Key.SPACE)
- @screen.wait(diui_png("Desktop+Gnome",ui_mode), 10)
+ @screen.type(Sikuli::Key.DOWN)
+ @screen.type(Sikuli::Key.DOWN) if "XFCE" == desktop
+ @screen.type(Sikuli::Key.SPACE)
+ @screen.wait(diui_png("Desktop+" + desktop,ui_mode), 10)
if "gui" == ui_mode
@screen.wait(diui_png("CONTINUEunselected",ui_mode), 10)
@screen.type(Sikuli::Key.TAB)
@@ -513,10 +515,14 @@ Given /^I wait for the reboot$/ do
@screen.wait(bootsplash, 10 * 60)
end
-Given /^I should see a Login prompt$/ do
+Given /^I should see a console Login prompt$/ do
@screen.wait("DebianLoginPromptVT.png", 20 * 60)
end
+Given /^I should see a XFCE Login prompt$/ do
+ @screen.wait("DebianLoginPromptXFCE.png", 20 * 60)
+end
+
def bootsplash
case @os_loader
when "UEFI"