diff options
-rw-r--r--features/images/PidginTailsChannelWelcome.pngbin1837 -> 2794 bytes
-rw-r--r--features/images/UnsafeBrowserDNSError.pngbin4618 -> 0 bytes
9 files changed, 20 insertions, 16 deletions
diff --git a/features/images/PidginTailsChannelWelcome.png b/features/images/PidginTailsChannelWelcome.png
index 61713f3..f055aec 100644
--- a/features/images/PidginTailsChannelWelcome.png
+++ b/features/images/PidginTailsChannelWelcome.png
Binary files differ
diff --git a/features/images/UnsafeBrowserDNSError.png b/features/images/UnsafeBrowserDNSError.png
deleted file mode 100644
index 233bc19..0000000
--- a/features/images/UnsafeBrowserDNSError.png
+++ /dev/null
Binary files differ
diff --git a/features/step_definitions/browser.rb b/features/step_definitions/browser.rb
index 3510f22..8146253 100644
--- a/features/step_definitions/browser.rb
+++ b/features/step_definitions/browser.rb
@@ -6,14 +6,10 @@ When /^I start the Unsafe Browser(?: through the GNOME menu)?$/ do
step "I start \"Unsafe Browser\" via the GNOME \"Internet\" applications menu"
-Then /^I see the Unsafe Browser start notification and wait for it to close$/ do
- robust_notification_wait("UnsafeBrowserStartNotification.png", 60)
When /^I successfully start the Unsafe Browser$/ do
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 "I see the \"Starting the Unsafe Browser...\" notification after at most 60 seconds"
step "the Unsafe Browser has started"
@@ -21,10 +17,6 @@ When /^I close the Unsafe Browser$/ do
@screen.type("q", Sikuli::KeyModifier.CTRL)
-Then /^I see the Unsafe Browser stop notification$/ do
- robust_notification_wait("UnsafeBrowserStopNotification.png", 60)
def xul_application_info(application)
binary = $vm.execute_successfully(
'echo ${TBB_INSTALL}/firefox', :libs => 'tor-browser'
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index a117cd2..908338f 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -244,11 +244,12 @@ Given /^Tails is at the boot menu's cmdline( after rebooting)?$/ do |reboot|
dealt_with_uefi_setup = false
- retry
+ raise e
+ true
diff --git a/features/step_definitions/pidgin.rb b/features/step_definitions/pidgin.rb
index ae71e20..754b034 100644
--- a/features/step_definitions/pidgin.rb
+++ b/features/step_definitions/pidgin.rb
@@ -466,4 +466,5 @@ end
When /^I click on the Tails roadmap URL$/ do'PidginTailsRoadmapUrl.png')
+ try_for(60) { @torbrowser ='Firefox') }
diff --git a/features/step_definitions/unsafe_browser.rb b/features/step_definitions/unsafe_browser.rb
index 9e37a0d..de69a16 100644
--- a/features/step_definitions/unsafe_browser.rb
+++ b/features/step_definitions/unsafe_browser.rb
@@ -168,7 +168,11 @@ Then /^the Unsafe Browser has no proxy configured$/ do
Then /^the Unsafe Browser complains that no DNS server is configured$/ do
- @screen.wait("UnsafeBrowserDNSError.png", 30)
+ assert_not_nil(
+ .child(roleName: 'label')
+ .text['No DNS server was obtained']
+ )
Then /^I configure the Unsafe Browser to check for updates more frequently$/ do
diff --git a/features/support/helpers/vm_helper.rb b/features/support/helpers/vm_helper.rb
index 0f89ac3..c2e9379 100644
--- a/features/support/helpers/vm_helper.rb
+++ b/features/support/helpers/vm_helper.rb
@@ -473,7 +473,7 @@ class VM
def select_virtual_desktop(desktop_number, user = LIVE_USER)
assert(desktop_number >= 0 && desktop_number <=3,
- "Only values between 0 and 3 are valid virtual desktop numbers")
+ "Only values between 0 and 1 are valid virtual desktop numbers")
"xdotool set_desktop '#{desktop_number}'",
:user => user
@@ -494,11 +494,17 @@ class VM
# Often when xdotool fails to focus a window it'll work when retried
# after redrawing the screen. Switching to a new virtual desktop then
# back seems to be a reliable way to handle this.
- select_virtual_desktop(3)
+ # Sadly we have to rely on a lot of sleep() here since there's
+ # little on the screen etc that we truly can rely on.
+ sleep 5
+ select_virtual_desktop(1)
+ sleep 5
- sleep 5 # there aren't any visual indicators which can be used here
+ sleep 5
do_focus(window_title, user)
+ rescue
+ # noop
def file_exist?(file)
diff --git a/features/torified_browsing.feature b/features/torified_browsing.feature
index 1373694..083b71d 100644
--- a/features/torified_browsing.feature
+++ b/features/torified_browsing.feature
@@ -158,7 +158,7 @@ Feature: Browsing the web using the Tor Browser
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
+ When I start the Tor Browser in offline mode
And I add a bookmark to in the Tor Browser
And I warm reboot the computer
And the computer reboots Tails
diff --git a/features/unsafe_browser.feature b/features/unsafe_browser.feature
index 0701d66..7b2dc54 100644
--- a/features/unsafe_browser.feature
+++ b/features/unsafe_browser.feature
@@ -33,7 +33,7 @@ Feature: Browsing the web using the Unsafe Browser
Given I have started Tails from DVD and logged in and the network is connected
When I successfully start the Unsafe Browser
And I close the Unsafe Browser
- Then I see the Unsafe Browser stop notification
+ Then I see the "Shutting down the Unsafe Browser..." notification after at most 60 seconds
And the Unsafe Browser chroot is torn down