Commit 37e5e198 authored by kytv's avatar kytv
Browse files

Continue running the test until all locales have been tried.

At the end of the test, print the locales in which the Unsafe Browser
failed to load.
parent 972ee709
......@@ -5,7 +5,7 @@ When /^I see and accept the Unsafe Browser start verification$/ do
def supported_torbrowser_languages
langs = []
langs =
exts = @vm.execute_successfully(
"find /usr/local/share/tor-browser-extensions -maxdepth 1 -name 'langpack*.xpi' -printf \"%f\n\"").stdout
......@@ -34,12 +34,19 @@ end
Then /^the Unsafe Browser works in all supported languages$/ do
next if @skip_steps_while_restoring_background
failed =
supported_torbrowser_languages.each do |lang|
step "I start the Unsafe Browser in the \"#{lang}\" locale"
step "the Unsafe Browser has started"
step "the Unsafe Browser has started"
rescue RuntimeError
failed << lang
step "I close the Unsafe Browser"
step "the Unsafe Browser chroot is torn down"
assert(failed.empty?, "Unsafe Browser failed to launch in the following locale(s): #{failed.join(', ')}")
Then /^I see the Unsafe Browser start notification and wait for it to close$/ do
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