Commit fa36ee90 authored by intrigeri's avatar intrigeri
Browse files

Test suite: simplify and avoid hard-coding the list of RTL Tor Browser locales.

Regardless of LTR vs. RTL, "TAB" will always move the keyboard focus to the
button that lets the user accept starting the Unsafe Browser. So let's use
this instead of the left/right button which requires special-casing RTL locales.
parent b6a409fe
When /^I see and accept the Unsafe Browser start verification(?:| in the "([^"]+)" locale)$/ do |locale|
@screen.wait('GnomeQuestionDialogIcon.png', 30)
if ['ar_EG.utf8', 'fa_IR', 'he_IL', 'he_IL.utf8'].include?(locale)
# Take into account button ordering in RTL languages
@screen.type(Sikuli::Key.LEFT + Sikuli::Key.ENTER)
else
@screen.type(Sikuli::Key.RIGHT + Sikuli::Key.ENTER)
end
@screen.type(Sikuli::Key.TAB + Sikuli::Key.ENTER)
end
def supported_torbrowser_languages
......
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