summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2019-09-08 15:39:11 +0000
committerintrigeri <intrigeri@boum.org>2019-09-12 15:38:51 +0000
commit56f031bc173302a048fce8fe1085a7a14c93d186 (patch)
tree640ecdc3001ebfcdf917b44147b539aa1cade38c
parent9846a29a6fb9424230368e7372d83cc94c39ba2b (diff)
Test suite: try another way to make "I start the Tor Browser in offline mode" more robust.test/17029+17027+17028+16931+force-all-tests
-rw-r--r--features/step_definitions/common_steps.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index e8c54a1..b6acc60 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -358,10 +358,12 @@ end
When /^I start the Tor Browser( in offline mode)?$/ do |offline|
step 'I start "Tor Browser" via GNOME Activities Overview'
if offline
- Dogtail::Application.new('zenity')
- .dialog('Tor is not ready', showingOnly: true)
- .button('Start Tor Browser', showingOnly: true)
- .click
+ start_button = Dogtail::Application.new('zenity')
+ .dialog('Tor is not ready', showingOnly: true)
+ .button('Start Tor Browser', showingOnly: true)
+ # Sometimes this click is lost. Maybe the dialog is not fully setup yet?
+ sleep 2
+ start_button.click
end
step "the Tor Browser has started#{offline}"
if offline