Commit 1ac6a008 authored by kytv's avatar kytv Committed by Tails developers
Browse files

Test starting the unsafe browser in various locales.

This change:
    -  @screen.type("l", Sikuli::KeyModifier.ALT)
    +  @screen.type(Sikuli::Key.ESC)

was made because many of the languages do not support the ALT+l
keystroke.
parent 3fddbf68
When /^I see and accept the Unsafe Browser start verification$/ do
next if @skip_steps_while_restoring_background
@screen.wait("UnsafeBrowserStartVerification.png", 30)
@screen.type("l", Sikuli::KeyModifier.ALT)
@screen.type(Sikuli::Key.ESC)
end
Then /^I start the Unsafe Browser in the "([^"]+)" locale$/ do |loc|
next if @skip_steps_while_restoring_background
step "I run \"LANG=#{loc}.UTF-8 LC_ALL=#{loc}.UTF-8 sudo unsafe-browser\" in GNOME Terminal"
step "I see and accept the Unsafe Browser start verification"
#@screen.wait("UnsafeBrowserHomepage.png", 120)
end
Then /^I see the Unsafe Browser start notification and wait for it to close$/ do
......
......@@ -26,6 +26,62 @@ Feature: Browsing the web using the Unsafe Browser
And the Unsafe Browser has no proxy configured
And the Unsafe Browser uses all expected TBB shared libraries
Scenario: Starting the Unsafe Browser works in Arabic
When I start the Unsafe Browser in the "ar_EG" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Brazilian Portuguese
When I start the Unsafe Browser in the "pt_BR" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Chinese
When I start the Unsafe Browser in the "zh_CN" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Dutch
When I start the Unsafe Browser in the "nl_NL" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Farsi
When I start the Unsafe Browser in the "fa_IR" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in French
When I start the Unsafe Browser in the "fr_FR" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in German
When I start the Unsafe Browser in the "de_DE" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Italian
When I start the Unsafe Browser in the "it_IT" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Korean
When I start the Unsafe Browser in the "kr_KR" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Polish
When I start the Unsafe Browser in the "pl_PL" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Portuguese
When I start the Unsafe Browser in the "pt_PT" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Russian
When I start the Unsafe Browser in the "ru_RU" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Turkish
When I start the Unsafe Browser in the "tr_TR" locale
Then the Unsafe Browser has started
Scenario: Starting the Unsafe Browser works in Vietnamese
When I start the Unsafe Browser in the "vi_VN" locale
Then the Unsafe Browser has started
Scenario: Closing the Unsafe Browser shows a stop notification and properly tears down the chroot.
When I successfully start the Unsafe Browser
And I close the Unsafe Browser
......
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