Commit d7c30c17 authored by boyska's avatar boyska
Browse files

wait for set time window to be closed

parent 22c8de49
......@@ -590,6 +590,17 @@ When /^I set the time zone in TCA to "([^"]*)"$/ do |timezone|
time_dialog.child('Apply', roleName: 'push button').click
true
end
# wait for the dialog to be closed
try_for(30) do
begin
tor_connection_assistant.child('Set Time')
rescue Dogtail::Failure
true
else
false
end
end
end
......
......@@ -72,6 +72,9 @@ Feature: Time syncing
# The "set time" button allows users to recover from this bug
When I set the time zone in TCA to "Asia/Shanghai"
Then Tails clock is less than 5 minutes incorrect
# XXX: this fails if tor is too fast to recover after the restart implied by setting the time
# TCA will notice this and switch to the success window
# so the button "Connect to Tor" cannot be clicked
When I click "Connect to Tor"
Then Tor is ready
And all Internet traffic has only flowed through the configured bridges
Supports Markdown
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