Commit 6648c77d authored by intrigeri's avatar intrigeri
Browse files

Take into account that button ordering differs depending on the locale's text direction.

refs: #11229
parent 66ffb1b1
When /^I see and accept the Unsafe Browser start verification$/ do
When /^I see and accept the Unsafe Browser start verification(?:| in the "([^"]+)" locale)$/ do |locale|
@screen.wait('GnomeQuestionDialogIcon.png', 30)
@screen.type(Sikuli::Key.RIGHT + Sikuli::Key.ENTER)
if ['ar_EG.utf8', 'fa_IR'].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
end
def supported_torbrowser_languages
......@@ -19,7 +24,7 @@ end
Then /^I start the Unsafe Browser in the "([^"]+)" locale$/ do |loc|
step "I run \"LANG=#{loc} LC_ALL=#{loc} sudo unsafe-browser\" in GNOME Terminal"
step "I see and accept the Unsafe Browser start verification"
step "I see and accept the Unsafe Browser start verification in the \"#{loc}\" locale"
end
Then /^the Unsafe Browser works in all supported languages$/ 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