summaryrefslogtreecommitdiffstats
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
parent21365f15ee6eee71e472d2af5f963f7c125e0db6 (diff)
Add test to watch a WebM video over HTTPS without using the command-line.
-rw-r--r--features/images/GnomeApplicationsSoundVideo.pngbin0 -> 2517 bytes
-rw-r--r--features/images/GnomeApplicationsTotem.pngbin0 -> 2683 bytes
-rw-r--r--features/images/TotemMainWindow.pngbin0 -> 25968 bytes
-rw-r--r--features/images/TotemOpenUrlDialog.pngbin0 -> 1850 bytes
-rw-r--r--features/step_definitions/totem.rb15
-rw-r--r--features/totem.feature7
6 files changed, 22 insertions, 0 deletions
diff --git a/features/images/GnomeApplicationsSoundVideo.png b/features/images/GnomeApplicationsSoundVideo.png
new file mode 100644
index 0000000..23328f0
--- /dev/null
+++ b/features/images/GnomeApplicationsSoundVideo.png
Binary files differ
diff --git a/features/images/GnomeApplicationsTotem.png b/features/images/GnomeApplicationsTotem.png
new file mode 100644
index 0000000..5382ce0
--- /dev/null
+++ b/features/images/GnomeApplicationsTotem.png
Binary files differ
diff --git a/features/images/TotemMainWindow.png b/features/images/TotemMainWindow.png
new file mode 100644
index 0000000..23af721
--- /dev/null
+++ b/features/images/TotemMainWindow.png
Binary files differ
diff --git a/features/images/TotemOpenUrlDialog.png b/features/images/TotemOpenUrlDialog.png
new file mode 100644
index 0000000..6d17866
--- /dev/null
+++ b/features/images/TotemOpenUrlDialog.png
Binary files differ
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
diff --git a/features/totem.feature b/features/totem.feature
index b13bd8e..856ed5b 100644
--- a/features/totem.feature
+++ b/features/totem.feature
@@ -32,3 +32,10 @@ Feature: Using Totem
And I start Tails from DVD and I login
When I open "https://webm.html5.org/test.webm" with Totem
Then I see "SampleRemoteWebMVideoFrame.png" after at most 10 seconds
+
+ Scenario: I can watch a WebM video over HTTPS without using the command-line
+ Given a computer
+ And I start Tails from DVD and I login
+ When I start Totem through the GNOME menu
+ When I load the "https://webm.html5.org/test.webm" URL in Totem
+ Then I see "SampleRemoteWebMVideoFrame.png" after at most 10 seconds