Commit 513c1cfe authored by Tails developers's avatar Tails developers
Browse files

Start the Unsafe Browser via the Applications menu.

parent 858f07a7
......@@ -27,15 +27,17 @@ end
When /^I start the Unsafe Browser$/ do
next if @skip_steps_while_restoring_background
unsafe_browser_cmd = nil
@vm.execute("cat /usr/share/applications/unsafe-browser.desktop").stdout.chomp.each_line { |line|
next if ! line.start_with? "Exec="
unsafe_browser_cmd = line[/^Exec=(.*)/,1]
}
assert(!unsafe_browser_cmd.nil?, "failed to extract the unsafe browser command")
step "I run \"#{unsafe_browser_cmd}\""
@screen.wait_and_click("GnomeApplicationsMenu.png", 10)
@screen.wait_and_click("GnomeApplicationsInternet.png", 10)
@screen.wait_and_click("GnomeApplicationsUnsafeBrowser.png", 20)
end
When /^I successfully start the Unsafe Browser$/ do
next if @skip_steps_while_restoring_background
step "I start the Unsafe Browser"
step "I see and accept the Unsafe Browser start verification"
step "I see the Unsafe Browser start notification and wait for it to close"
step "the Unsafe Browser has started"
end
Then /^I see a warning about another instance already running$/ do
......
......@@ -16,37 +16,31 @@ Feature: Browsing the web using the Unsafe Browser
And I save the state so the background can be restored next scenario
Scenario: Starting the Unsafe Browser works as it should.
When I start the Unsafe Browser
Then the Unsafe Browser has started
When I successfully start the Unsafe Browser
And the Unsafe Browser has a red theme
And the Unsafe Browser shows a warning as its start page
Scenario: Closing the Unsafe Browser shows a stop notification.
When I start the Unsafe Browser
Then the Unsafe Browser has started
When I successfully start the Unsafe Browser
And I close the Unsafe Browser
Then I see the Unsafe Browser stop notification
Scenario: Starting a second instance of the Unsafe Browser results in an error message being shown.
When I start the Unsafe Browser
Then the Unsafe Browser has started
And I run "sudo unsafe-browser"
When I successfully start the Unsafe Browser
And I start the Unsafe Browser
Then I see a warning about another instance already running
Scenario: The Unsafe Browser cannot be restarted before the previous instance has been cleaned up.
When I start the Unsafe Browser
Then the Unsafe Browser has started
When I successfully start the Unsafe Browser
And I close the Unsafe Browser
And I run "sudo unsafe-browser"
And I start the Unsafe Browser
Then I see a warning about another instance already running
Scenario: Opening check.torproject.org in the Unsafe Browser shows the red onion and a warning message.
When I start the Unsafe Browser
Then the Unsafe Browser has started
When I successfully start the Unsafe Browser
And I open the address "https://check.torproject.org" in the Unsafe Browser
Then I see "UnsafeBrowserTorCheckFail.png" after at most 60 seconds
Scenario: The Unsafe Browser cannot be configured to use Tor and other local proxies.
When I start the Unsafe Browser
Then the Unsafe Browser has started
When I successfully start the Unsafe Browser
Then I cannot configure the Unsafe Browser to use any local proxies
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment