torified_browsing.feature 7.05 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
  @check_tor_leaks
8
  Scenario: The Tor Browser directory is usable
9
    Given Tails has booted from DVD and logged in and the network is connected
10
11
12
    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
13
14
15
    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
16
17
    And I can print the current page as "output.pdf" to the default downloads directory

18
  @check_tor_leaks
19
  Scenario: Importing an OpenPGP key from a website
20
    Given Tails has booted from DVD and logged in and the network is connected
21
22
23
24
    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
25
    When I accept to import the key with Seahorse
26
27
    Then I see "KeyImportedNotification.png" after at most 10 seconds

28
  @check_tor_leaks
29
  Scenario: Playing HTML5 audio
30
    Given Tails has booted from DVD and logged in and the network is connected
31
32
33
34
35
36
37
    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

38
  @check_tor_leaks
39
  Scenario: Watching a WebM video
40
    Given Tails has booted from DVD and logged in and the network is connected
41
42
43
44
45
46
47
48
49
    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
50
    Given Tails has booted from DVD and logged in and the network is connected
51
52
53
54
55
56
57
58
59
60
    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"
    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
    Then I see "TorBrowserSynapticManual.png" after at most 10 seconds
    When I open the address "file:///home/amnesia/.gnupg/synaptic.html" in the Tor Browser
    Then I see "TorBrowserUnableToOpen.png" after at most 10 seconds

  Scenario: The "Tails documentation" link on the Desktop works
61
    Given Tails has booted from DVD and logged in and the network is connected
62
63
64
65
    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

66
  Scenario: The Tor Browser uses TBB's shared libraries
67
    Given Tails has booted from DVD and logged in and the network is connected
68
69
70
71
    When I start the Tor Browser
    And the Tor Browser has started
    Then the Tor Browser uses all expected TBB shared libraries

72
  @check_tor_leaks
73
  Scenario: Opening check.torproject.org in the Tor Browser shows the green onion and the congratulations message
74
    Given Tails has booted from DVD and logged in and the network is connected
75
76
77
78
    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
79

kytv's avatar
kytv committed
80
  @check_tor_leaks
81
  Scenario: The Tor Browser's "New identity" feature works as expected
82
    Given Tails has booted from DVD and logged in and the network is connected
83
84
85
86
87
88
89
90
    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

91
  Scenario: The Tor Browser should not have any plugins enabled
92
    Given Tails has booted from DVD and logged in and the network is connected
93
94
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
95
    Then the Tor Browser has no plugins installed
96
97
98
99

  Scenario: The persistent Tor Browser directory is usable
    Given Tails has booted without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen
    And the network is plugged
100
    When I enable persistence
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
    And I log in to a new session
    And Tails is running from USB drive "current"
    And Tor is ready
    And available upgrades have been checked
    And all notifications have disappeared
    Then the persistent Tor Browser directory exists
    And there is a GNOME bookmark for the persistent Tor Browser directory
    When I start the Tor Browser
    And the Tor Browser has started and loaded the startup page
    And I can save the current page as "index.html" to the persistent Tor Browser directory
    When I open the address "file:///home/amnesia/Persistent/Tor Browser/index.html" in the Tor Browser
    Then I see "TorBrowserSavedStartupPage.png" after at most 10 seconds
    And I can print the current page as "output.pdf" to the persistent Tor Browser directory

  Scenario: Persistent browser bookmarks
    Given Tails has booted without network from a USB drive with a persistent partition and stopped at Tails Greeter's login screen
    And Tails is running from USB drive "current"
    And the boot device has safe access rights
119
    And I enable persistence
120
121
122
123
124
125
126
127
128
129
130
131
    And I log in to a new session
    And the Tails desktop is ready
    And all notifications have disappeared
    And all persistence presets are enabled
    And all persistent filesystems have safe access rights
    And all persistence configuration files have safe access rights
    And all persistent directories have safe access rights
    And I start the Tor Browser in offline mode
    And the Tor Browser has started in offline mode
    And I add a bookmark to eff.org in the Tor Browser
    And I warm reboot the computer
    And the computer reboots Tails
132
    And I enable read-only persistence
133
134
135
136
137
    And I log in to a new session
    And the Tails desktop is ready
    And I start the Tor Browser in offline mode
    And the Tor Browser has started in offline mode
    Then the Tor Browser has a bookmark to eff.org