4 I want to watch local and remote videos in Totem
5 And AppArmor should prevent Totem from doing dangerous things
6 And all Internet traffic should flow only through Tor
8 # We cannot use Background to save a snapshot of an already booted
9 # Tails here, due to bugs with filesystem shares vs. snapshots, as
10 # explained in checks.feature.
13 Given I create sample videos
15 Scenario: Watching a MP4 video stored on the non-persistent filesystem
17 And I setup a filesystem share containing sample videos
18 And I start Tails from DVD with network unplugged and I login
19 And I copy the sample videos to "/home/amnesia" as user "amnesia"
20 When I open "/home/amnesia/video.mp4" with Totem
21 Then I see "SampleLocalMp4VideoFrame.png" after at most 10 seconds
23 And I copy the sample videos to "/home/amnesia/.gnupg" as user "amnesia"
24 When I try to open "/home/amnesia/.gnupg/video.mp4" with Totem
25 Then I see "TotemUnableToOpen.png" after at most 10 seconds
27 Scenario: Watching a WebM video over HTTPS, with and without the command-line
29 And I capture all network traffic
30 And I start Tails from DVD and I login
31 When I open "https://webm.html5.org/test.webm" with Totem
32 Then I see "SampleRemoteWebMVideoFrame.png" after at most 10 seconds
34 And I start Totem through the GNOME menu
35 When I load the "https://webm.html5.org/test.webm" URL in Totem
36 Then I see "SampleRemoteWebMVideoFrame.png" after at most 10 seconds
37 And all Internet traffic has only flowed through Tor
40 Scenario: Installing Tails on a USB drive, creating a persistent partition, copying video files to it
41 Given the USB drive "current" contains Tails with persistence configured and password "asdf"
43 And I setup a filesystem share containing sample videos
44 And I start Tails from USB drive "current" with network unplugged and I login with persistence password "asdf"
45 And I copy the sample videos to "/home/amnesia/Persistent" as user "amnesia"
46 And I copy the sample videos to "/home/amnesia/.gnupg" as user "amnesia"
47 And I shutdown Tails and wait for the computer to power off
50 Scenario: Watching a MP4 video stored on the persistent volume
52 And I start Tails from USB drive "current" with network unplugged and I login with persistence password "asdf"
53 And the file "/home/amnesia/Persistent/video.mp4" exists
54 When I open "/home/amnesia/Persistent/video.mp4" with Totem
55 Then I see "SampleLocalMp4VideoFrame.png" after at most 10 seconds
57 And the file "/home/amnesia/.gnupg/video.mp4" exists
58 When I try to open "/home/amnesia/.gnupg/video.mp4" with Totem
59 Then I see "TotemUnableToOpen.png" after at most 10 seconds