Commit 7efad3aa authored by Tails developers's avatar Tails developers
Browse files

Bring back check for Unsafe Web Browser notifications.

The Sikuli images are now updated for Wheezy.
parent 4e52bc13
......@@ -4,6 +4,12 @@ When /^I see and accept the Unsafe Browser start verification$/ do
@screen.type("l", Sikuli::KeyModifier.ALT)
end
Then /^I see the Unsafe Browser start notification and wait for it to close$/ do
next if @skip_steps_while_restoring_background
@screen.wait("UnsafeBrowserStartNotification.png", 30)
@screen.waitVanish("UnsafeBrowserStartNotification.png", 10)
end
Then /^the Unsafe Browser has started$/ do
next if @skip_steps_while_restoring_background
@screen.wait("UnsafeBrowserHomepage.png", 360)
......@@ -34,6 +40,7 @@ When /^I start the Unsafe Browser$/ do
assert(!unsafe_browser_cmd.nil?, "failed to extract the unsafe browser command")
step "I run \"#{unsafe_browser_cmd}\""
step "I see and accept the Unsafe Browser start verification"
step "I see the Unsafe Browser start notification and wait for it to close"
end
Then /^I see a warning about another instance already running$/ do
......@@ -46,6 +53,12 @@ When /^I close the Unsafe Browser$/ do
@screen.type("q", Sikuli::KeyModifier.CTRL)
end
Then /^I see the Unsafe Browser stop notification$/ do
next if @skip_steps_while_restoring_background
@screen.wait('UnsafeBrowserStopNotification.png', 20)
@screen.waitVanish('UnsafeBrowserStopNotification.png', 10)
end
Then /^I can start the Unsafe Browser again$/ do
next if @skip_steps_while_restoring_background
step "I start the Unsafe Browser"
......
......@@ -22,6 +22,12 @@ Feature: Browsing the web using the Unsafe Browser
And the Unsafe Browser has Wikipedia pre-selected in the search bar
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
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
......
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