Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15084 from bobsilverberg/kb_lang
Browse files Browse the repository at this point in the history
Bug 957144 - OSX b2g desktop failure | test_settings_change_keyboard_language.py
  • Loading branch information
Zac committed Jan 8, 2014
2 parents ac195f9 + 79c988d commit cf5f195
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/python/gaia-ui-tests/gaiatest/apps/keyboard/app.py
Expand Up @@ -229,6 +229,7 @@ def switch_keyboard_language(self, lang_code):

def tap_keyboard_language_key(self):
self.switch_to_keyboard()
self.wait_for_element_displayed(*self._language_key_locator)
self.marionette.find_element(*self._language_key_locator).tap()
self.apps.switch_to_displayed_app()

Expand Down
Expand Up @@ -43,6 +43,7 @@ class KeyboardAddMoreKeyboards(Base):
By.XPATH,
"//div[@id='keyboardAppContainer']//li[label[span[text()='%s']]]"
)
_back_button_locator = (By.CSS_SELECTOR, '.current header > a')

def __init__(self, marionette):
Base.__init__(self, marionette)
Expand All @@ -62,3 +63,6 @@ def select_language(self, language):
selected_language.tap()
checkbox = selected_language.find_element(By.TAG_NAME, 'input')
self.wait_for_condition(lambda m: checkbox.is_selected())

def go_back(self):
self.marionette.find_element(*self._back_button_locator).tap()
Expand Up @@ -25,8 +25,9 @@ def test_change_keyboard_language_settings(self):
# Tap 'add more keyboards' button
add_more_keyboards = select_keyboard.tap_add_more_keyboards()

# Select keyboard language
# Select keyboard language, then click back to make it "stick"
add_more_keyboards.select_language(u'Espa\u00F1ol')
add_more_keyboards.go_back()

# launch the Contacts app to verify the keyboard layout
contacts_app = Contacts(self.marionette)
Expand Down

0 comments on commit cf5f195

Please sign in to comment.