torified_browsing.feature 7.09 KB
Newer Older
1
@product
2
Feature: Browsing the web using the Tor Browser
Tails developers's avatar
Tails developers committed
3
  As a Tails user
4
  when I browse the web using the Tor Browser
Tails developers's avatar
Tails developers committed
5
  all Internet traffic should flow only through Tor
6
7

  Background:
8
9
10
    Given a computer
    And I start the computer
    And the computer boots Tails
11
    And I log in to a new session
12
    And the Tails desktop is ready
13
    And Tor is ready
14
    And available upgrades have been checked
15
    And all notifications have disappeared
16
    And I save the state so the background can be restored next scenario
17

18
  Scenario: The Tor Browser cannot access the LAN
anonym's avatar
anonym committed
19
20
    Given a web server is running on the LAN
    And I capture all network traffic
21
22
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
anonym's avatar
anonym committed
23
    And I open a page on the LAN web server in the Tor Browser
24
    Then I see "TorBrowserUnableToConnect.png" after at most 20 seconds
anonym's avatar
anonym committed
25
    And no traffic has flowed to the LAN
26

27
  @check_tor_leaks
28
29
30
31
  Scenario: The Tor Browser directory is usable
    Then the amnesiac Tor Browser directory exists
    And there is a GNOME bookmark for the amnesiac Tor Browser directory
    And the persistent Tor Browser directory does not exist
32
33
34
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    Then I can save the current page as "index.html" to the default downloads directory
35
36
    And I can print the current page as "output.pdf" to the default downloads directory

37
  @check_tor_leaks
38
39
40
41
42
  Scenario: Importing an OpenPGP key from a website
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    And I open the address "https://tails.boum.org/tails-signing.key" in the Tor Browser
    Then I see "OpenWithImportKey.png" after at most 20 seconds
43
    When I accept to import the key with Seahorse
44
45
    Then I see "KeyImportedNotification.png" after at most 10 seconds

46
  @check_tor_leaks
47
48
49
50
51
52
53
54
  Scenario: Playing HTML5 audio
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    And no application is playing audio
    And I open the address "http://www.terrillthompson.com/tests/html5-audio.html" in the Tor Browser
    And I click the HTML5 play button
    And 1 application is playing audio after 10 seconds

55
  @check_tor_leaks
56
57
58
59
60
61
62
63
64
65
66
67
  Scenario: Watching a WebM video
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    And I open the address "https://webm.html5.org/test.webm" in the Tor Browser
    And I click the blocked video icon
    And I see "TorBrowserNoScriptTemporarilyAllowDialog.png" after at most 10 seconds
    And I accept to temporarily allow playing this video
    Then I see "TorBrowserSampleRemoteWebMVideoFrame.png" after at most 180 seconds

  Scenario: I can view a file stored in "~/Tor Browser" but not in ~/.gnupg
    Given I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/Tor Browser/synaptic.html" as user "amnesia"
    And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/.gnupg/synaptic.html" as user "amnesia"
68
    And I copy "/usr/share/synaptic/html/index.html" to "/tmp/synaptic.html" as user "amnesia"
69
70
71
    Then the file "/home/amnesia/.gnupg/synaptic.html" exists
    And the file "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html" exists
    And the file "/live/overlay/home/amnesia/.gnupg/synaptic.html" exists
72
    And the file "/tmp/synaptic.html" exists
73
74
75
    And I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    When I open the address "file:///home/amnesia/Tor Browser/synaptic.html" in the Tor Browser
76
    Then I see "TorBrowserSynapticManual.png" after at most 5 seconds
77
78
    And AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/Tor Browser/synaptic.html"
    Given AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
79
    When I open the address "file:///home/amnesia/.gnupg/synaptic.html" in the Tor Browser
80
81
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
    And AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
82
    Given AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
83
    When I open the address "file:///lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
84
85
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
    And AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
86
    Given AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/live/overlay/home/amnesia/.gnupg/synaptic.html"
87
    When I open the address "file:///live/overlay/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
88
89
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
    And AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/live/overlay/home/amnesia/.gnupg/synaptic.html"
intrigeri's avatar
intrigeri committed
90
    # We do not get any AppArmor log for when access to files in /tmp is denied
91
92
93
94
95
    # since we explictly override (commit 51c0060) the rules (from the user-tmp
    # abstration) that would otherwise allow it, and we do so with "deny", which
    # also specifies "noaudit". We could explicitly specify "audit deny" and
    # then have logs, but it could be a problem when we set up desktop
    # notifications for AppArmor denials (#9337).
96
    When I open the address "file:///tmp/synaptic.html" in the Tor Browser
97
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
98
99
100
101
102
103

  Scenario: The "Tails documentation" link on the Desktop works
    When I double-click on the "Tails documentation" link on the Desktop
    Then the Tor Browser has started
    And I see "TailsOfflineDocHomepage.png" after at most 10 seconds

104
105
106
107
108
  Scenario: The Tor Browser uses TBB's shared libraries
    When I start the Tor Browser
    And the Tor Browser has started
    Then the Tor Browser uses all expected TBB shared libraries

109
  @check_tor_leaks
110
111
112
113
114
  Scenario: Opening check.torproject.org in the Tor Browser shows the green onion and the congratulations message
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    And I open the address "https://check.torproject.org" in the Tor Browser
    Then I see "TorBrowserTorCheck.png" after at most 180 seconds
115

kytv's avatar
kytv committed
116
  @check_tor_leaks
117
118
119
120
121
122
123
124
125
  Scenario: The Tor Browser's "New identity" feature works as expected
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    And I open the address "https://check.torproject.org" in the Tor Browser
    Then I see "TorBrowserTorCheck.png" after at most 180 seconds
    When I request a new identity using Torbutton
    And I acknowledge Torbutton's New Identity confirmation prompt
    Then the Tor Browser loads the startup page

126
127
128
  Scenario: The Tor Browser should not have any plugins enabled
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
129
    Then the Tor Browser has no plugins installed