summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/totem.rb
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2014-10-03 17:18:46 +0000
committerTails developers <amnesia@boum.org>2014-10-03 17:19:17 +0000
commitfe0e91e3b2cb5c555c4e519ec5bf9e83b1a8b395 (patch)
treed3ede0cc60abab6efcdfbc3d149ee63bc8b89543 /features/step_definitions/totem.rb
parent21365f15ee6eee71e472d2af5f963f7c125e0db6 (diff)
Add test to watch a WebM video over HTTPS without using the command-line.
Diffstat (limited to 'features/step_definitions/totem.rb')
-rw-r--r--features/step_definitions/totem.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/features/step_definitions/totem.rb b/features/step_definitions/totem.rb
index 8182ef5..6df511d 100644
--- a/features/step_definitions/totem.rb
+++ b/features/step_definitions/totem.rb
@@ -24,6 +24,21 @@ Given /^I copy the sample videos to "([^"]+)" as user "([^"]+)"$/ do |destinatio
end
end
+When /^I start Totem through the GNOME menu$/ do
+ next if @skip_steps_while_restoring_background
+ @screen.wait_and_click("GnomeApplicationsMenu.png", 10)
+ @screen.wait_and_click("GnomeApplicationsSoundVideo.png", 10)
+ @screen.wait_and_click("GnomeApplicationsTotem.png", 20)
+ @screen.wait_and_click("TotemMainWindow.png", 20)
+end
+
+When /^I load the "([^"]+)" URL in Totem$/ do |url|
+ next if @skip_steps_while_restoring_background
+ @screen.type("l", Sikuli::KeyModifier.CTRL)
+ @screen.wait("TotemOpenUrlDialog.png", 10)
+ @screen.type(url + Sikuli::Key.ENTER)
+end
+
When /^I(?:| try to) open "([^"]+)" with Totem$/ do |filename|
next if @skip_steps_while_restoring_background
puts @vm.execute("ls -l /home/amnesia").stdout