Nikerabbit has uploaded a new change for review. https://gerrit.wikimedia.org/r/97488
Change subject: WIP: browser tests for numpad input ...................................................................... WIP: browser tests for numpad input Change-Id: I6aeb1210b8de36b55095df190d247488461c082f --- M tests/browser/config/config.yml M tests/browser/features/ime.feature M tests/browser/features/step_definitions/ime_steps.rb 3 files changed, 25 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector refs/changes/88/97488/1 diff --git a/tests/browser/config/config.yml b/tests/browser/config/config.yml index 9e8902d..28c935e 100644 --- a/tests/browser/config/config.yml +++ b/tests/browser/config/config.yml @@ -7,8 +7,8 @@ firefox: name: firefox - platform: Linux - version: 23 + platform: Windows 7 + version: 24 # IE <8 not supported, IE8 has some issues internet_explorer_8: diff --git a/tests/browser/features/ime.feature b/tests/browser/features/ime.feature index ad35c88..ee3d618 100644 --- a/tests/browser/features/ime.feature +++ b/tests/browser/features/ime.feature @@ -64,3 +64,10 @@ | Vector | Hebrew | | Monobook | English | #| Monobook | Hebrew | + + Scenario: Using numerical keypad + Given I am at random page + And I have enabled an input method + When I click on an input box + And I type Alt+0150 on numpad + Then I should see long dash in the input box diff --git a/tests/browser/features/step_definitions/ime_steps.rb b/tests/browser/features/step_definitions/ime_steps.rb index 68203db..37e3b9e 100644 --- a/tests/browser/features/step_definitions/ime_steps.rb +++ b/tests/browser/features/step_definitions/ime_steps.rb @@ -70,3 +70,19 @@ Then(/^I should see the input method menu is not offscreen$/) do on(IMEPage).ime_input_method_menu_onscreen?.should == true end + +Given(/^I have enabled an input method$/) do + step 'I click on an input box' + step 'I open the input method menu' + step 'I choose ml as the input language' + step 'I open the input method menu' + step 'I click on the Malayalam InScript 2 menu item' +end + +When(/^I type Alt\+0150 on numpad$/) do + on(IMEPage).search_input_element.send_keys [:alt, '0150'] +end + +Then(/^I should see long dash in the input box$/) do + pending # express the regexp above with the code you wish you had +end -- To view, visit https://gerrit.wikimedia.org/r/97488 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6aeb1210b8de36b55095df190d247488461c082f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits