Cucumber Features

Expand All

Collapse All

@language @sandbox.translatewiki.net

Feature: Accept-Language

features/accept_language.feature:4

Scenario Outline: Accept-Language

  1. Given that my browser's accept language is <language>
    features/step_definitions/accept_language_steps.rb:1
  2. When I visit a random page
    features/step_definitions/accept_language_steps.rb:6
  3. Then link to the main page has text <text>
    features/step_definitions/accept_language_steps.rb:10

Examples

language
text
de
Hauptseite
Changing default language is currently supported only for Firefox and Chrome!
./features/step_definitions/accept_language_steps.rb:2:in `/^that my browser's accept language is (.+)$/'
features/accept_language.feature:5:in `Given that my browser's accept language is <language>'
sr
Главна страна
Changing default language is currently supported only for Firefox and Chrome!
./features/step_definitions/accept_language_steps.rb:2:in `/^that my browser's accept language is (.+)$/'
features/accept_language.feature:5:in `Given that my browser's accept language is <language>'
sr-ec
Главна страна
Changing default language is currently supported only for Firefox and Chrome!
./features/step_definitions/accept_language_steps.rb:2:in `/^that my browser's accept language is (.+)$/'
features/accept_language.feature:5:in `Given that my browser's accept language is <language>'
sr-el
Glavna strana
Changing default language is currently supported only for Firefox and Chrome!
./features/step_definitions/accept_language_steps.rb:2:in `/^that my browser's accept language is (.+)$/'
features/accept_language.feature:5:in `Given that my browser's accept language is <language>'

Feature: Autonym font


* Web font should always be applied to the ULS language selector's language
selection screen for display and input languages.
* Web font should always be applied to the interlanguage section of MediaWiki
when MediaWiki extension ULS is installed.

@login @commons.wikimedia.beta.wmflabs.orgfeatures/autonym.feature:9

Scenario: Autonym font is used in the ULS language search dialog for display language selection by logged-in users

  1. Given I am logged in
    features/step_definitions/common_steps.rb:8
  2. And I open the Universal Language Selector
    features/step_definitions/panel_steps.rb:5
  3. And I open Display panel of language settings
    features/step_definitions/panel_steps.rb:9
  4. When I click the button with the ellipsis
    features/step_definitions/cog_sidebar_user_steps.rb:38
  5. Then the language list of ULS should use Autonym font
    features/step_definitions/panel_steps.rb:70
    expected: "'Autonym',sans-serif"
         got: "Autonym, sans-serif" (using ==) (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/panel_steps.rb:71:in `/^the language list of ULS should use Autonym font$/'
    features/autonym.feature:14:in `Then the language list of ULS should use Autonym font'
    69
    70Then(/^the language list of ULS should use Autonym font$/) do
    71	on(PanelPage).autonym_element.style("font-family").should == "'Autonym',sans-serif"
    72end
@login @commons.wikimedia.beta.wmflabs.orgfeatures/autonym.feature:17

Scenario: Autonym font is used in the ULS language search dialog for input language selection by logged-in users

  1. Given I am logged in
    features/step_definitions/common_steps.rb:8
  2. And I open the Universal Language Selector
    features/step_definitions/panel_steps.rb:5
  3. And I open Input panel of language settings
    features/step_definitions/autonym_steps.rb:1
  4. When I click the button with the ellipsis
    features/step_definitions/cog_sidebar_user_steps.rb:38
  5. Then the language list of ULS should use Autonym font
    features/step_definitions/panel_steps.rb:70
    expected: "'Autonym',sans-serif"
         got: "Autonym, sans-serif" (using ==) (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/panel_steps.rb:71:in `/^the language list of ULS should use Autonym font$/'
    features/autonym.feature:22:in `Then the language list of ULS should use Autonym font'
    69
    70Then(/^the language list of ULS should use Autonym font$/) do
    71	on(PanelPage).autonym_element.style("font-family").should == "'Autonym',sans-serif"
    72end
@login @en.wikipedia.beta.wmflabs.orgfeatures/autonym.feature:25

Scenario: Autonym font should be used in the Interlanguage area of a page with Interlanguage links

  1. Given I am logged in
    features/step_definitions/common_steps.rb:8
  2. When I am on a page with interlanguage links
    features/step_definitions/cog_sidebar_user_steps.rb:1
  3. Then the Interlanguage area should use Autonym font
    features/step_definitions/panel_steps.rb:74
    unable to locate element, using {:css=>"#p-lang ul"} (Watir::Exception::UnknownObjectException)
    ./features/step_definitions/panel_steps.rb:75:in `/^the Interlanguage area should use Autonym font$/'
    features/autonym.feature:28:in `Then the Interlanguage area should use Autonym font'
    73
    74Then(/^the Interlanguage area should use Autonym font$/) do
    75	on(InterlanguagePage).interlang_link_element.style("font-family").should == "'Autonym',sans-serif"
    76end
@anon-language-selection @commons.wikimedia.beta.wmflabs.orgfeatures/autonym.feature:31

Scenario: Autonym font is used in the ULS language search dialog for input language selection by anonymous users

  1. Given I am at random page
    features/step_definitions/common_steps.rb:1
  2. And I open the Universal Language Selector
    features/step_definitions/panel_steps.rb:5
  3. And I open Input panel of language settings
    features/step_definitions/autonym_steps.rb:1
  4. When I click the button with the ellipsis
    features/step_definitions/cog_sidebar_user_steps.rb:38
  5. Then the language list of ULS should use Autonym font
    features/step_definitions/panel_steps.rb:70
    expected: "'Autonym',sans-serif"
         got: "Autonym, sans-serif" (using ==) (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/panel_steps.rb:71:in `/^the language list of ULS should use Autonym font$/'
    features/autonym.feature:36:in `Then the language list of ULS should use Autonym font'
    69
    70Then(/^the language list of ULS should use Autonym font$/) do
    71	on(PanelPage).autonym_element.style("font-family").should == "'Autonym',sans-serif"
    72end
@commons.wikimedia.beta.wmflabs.org @login @reset-preferences-after

Feature: Font selection


In order to have better using experience,
As a reader and writer,
I want to change or disable the fonts for interface and content.

In addition the user is provided live preview feature: changes are applied
immediately when selection is made. Changes can either be applied or discarded
for easy testing.

Background

  1. Given I am logged in
    features/step_definitions/common_steps.rb:8
  2. And I set "German" as the interface language
    features/step_definitions/common_steps.rb:12
  3. And I open ULS
    features/step_definitions/font_selection_steps.rb:1
  4. And I open display settings
    features/step_definitions/font_selection_steps.rb:5
  5. When I open Fonts panel of language settings
    features/step_definitions/panel_steps.rb:17
features/font_selection.feature:19

Scenario: Font selector appears

  1. Then a font selector for interface language appears
    features/step_definitions/panel_steps.rb:45
    expected visible? to return true, got false (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/panel_steps.rb:46:in `/^a font selector for interface language appears$/'
    features/font_selection.feature:20:in `Then a font selector for interface language appears'
    44
    45Then(/^a font selector for interface language appears$/) do
    46  on(PanelPage).panel_interface_font_selector_element.should be_visible
    47end
  2. And a font selector for content language appears
    features/step_definitions/panel_steps.rb:49
features/font_selection.feature:23

Scenario: Discarding live preview of content font

  1. When I select OpenDyslexic font for the content language for the live preview
    features/step_definitions/panel_steps.rb:25
  2. And I close the panel to discard the changes
    features/step_definitions/panel_steps.rb:29
  3. Then the active content font must be the same as font prior to the preview
    features/step_definitions/font_selection_steps.rb:9
    Expected pending 'bug #56081' to fail. No Error was raised. No longer pending? (Cucumber::Pending)
    ./features/step_definitions/font_selection_steps.rb:10:in `/^the active content font must be the same as font prior to the preview$/'
    features/font_selection.feature:26:in `Then the active content font must be the same as font prior to the preview'
    8
    9Then(/^the active content font must be the same as font prior to the preview$/) do
    10	pending('bug #56081') do
    11		on(PanelPage).content_font.should == @original_content_font
    12	end
  4. And the selected content font must be "Systemschriftart"
    features/step_definitions/font_selection_steps.rb:19
features/font_selection.feature:30

Scenario: Discarding live preview of interface font

  1. When I select OpenDyslexic font for the interface language for the live preview
    features/step_definitions/panel_steps.rb:21
    "OpenDyslexic" not found in select list (Watir::Exception::NoValueFoundException)
    (eval):1:in `process_watir_call'
    ./features/step_definitions/panel_steps.rb:22:in `/^I select (.*?) font for the interface language for the live preview$/'
    features/font_selection.feature:31:in `When I select OpenDyslexic font for the interface language for the live preview'
    -1# Couldn't get snippet for (eval)
  2. And I close the panel to discard the changes
    features/step_definitions/panel_steps.rb:29
  3. Then the active interface font must be the same as font prior to the preview
    features/step_definitions/font_selection_steps.rb:15
  4. And the selected interface font must be "Systemschriftart"
    features/step_definitions/font_selection_steps.rb:25
features/font_selection.feature:37

Scenario: Applying the live preview of interface font

  1. When I select OpenDyslexic font for the interface language for the live preview
    features/step_definitions/panel_steps.rb:21
    "OpenDyslexic" not found in select list (Watir::Exception::NoValueFoundException)
    (eval):1:in `process_watir_call'
    ./features/step_definitions/panel_steps.rb:22:in `/^I select (.*?) font for the interface language for the live preview$/'
    features/font_selection.feature:38:in `When I select OpenDyslexic font for the interface language for the live preview'
    -1# Couldn't get snippet for (eval)
  2. And I apply the changes
    features/step_definitions/panel_steps.rb:33
  3. Then the interface font must be changed to the "OpenDyslexic" font
    features/step_definitions/font_selection_steps.rb:31

Feature: Input method engine


User is able to select among different input methods via a menu which is
activated by the input method indicator. User can type with selected input
method in different input fields and temporarily activate and deactivate the
input method.

@commons.wikimedia.beta.wmflabs.orgfeatures/ime.feature:9

Scenario: Input method indicator is shown The input method indicator is shown when input field gets a focus.

  1. Given I am at random page
    features/step_definitions/common_steps.rb:1
  2. When I click on an input box
    features/step_definitions/ime_steps.rb:9
  3. Then I should see the input method indicator
    features/step_definitions/ime_steps.rb:22
@commons.wikimedia.beta.wmflabs.orgfeatures/ime.feature:18

Scenario: Input method menu Input method menu is shown when user clicks the input method indicator.

  1. Given I am at random page
    features/step_definitions/common_steps.rb:1
  2. When I click on an input box
    features/step_definitions/ime_steps.rb:9
  3. And I click on the input method indicator
    features/step_definitions/ime_steps.rb:13
  4. Then I should see input methods for English
    features/step_definitions/ime_steps.rb:26
  5. And I should see a list of available input methods
    features/step_definitions/ime_steps.rb:30
  6. And I should see a list of suggested languages
    features/step_definitions/ime_steps.rb:34
features/ime.feature:29

Scenario: Unsupported input language User visits a wiki with content language that does not have have an input method.

  1. Given I am on a wiki in Kotava language
    features/step_definitions/ime_steps.rb:3
  2. When I open the input method menu
    features/step_definitions/ime_steps.rb:17
  3. Then I should see input methods for Kotava
    features/step_definitions/ime_steps.rb:26
    expected: "Kotava"
         got: "English" (using ==) (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/ime_steps.rb:27:in `/^I should see input methods for (.+)/'
    features/ime.feature:36:in `Then I should see input methods for Kotava'
    25
    26Then(/^I should see input methods for (.+)/) do |language|
    27  on(IMEPage).input_method_ime_list_title.should == language
    28end
@commons.wikimedia.beta.wmflabs.orgfeatures/ime.feature:39

Scenario: Sticky input methods Chosen input method selection persists across page loads.

  1. Given I am at random page
    features/step_definitions/common_steps.rb:1
  2. When I open the input method menu
    features/step_definitions/ime_steps.rb:17
  3. And I choose ml as the input language
    features/step_definitions/ime_steps.rb:38
  4. And I open the input method menu
    features/step_definitions/ime_steps.rb:17
  5. And I click on the Malayalam InScript 2 menu item
    features/step_definitions/ime_steps.rb:49
  6. And I press Control-M
    features/step_definitions/ime_steps.rb:53
  7. And I go to another random page
    features/step_definitions/ime_steps.rb:57
  8. And I click on an input box
    features/step_definitions/ime_steps.rb:9
  9. And I press Control-M
    features/step_definitions/ime_steps.rb:53
  10. Then I should see the input method indicator
    features/step_definitions/ime_steps.rb:22
  11. And in it there must be an element with Malayalam text
    features/step_definitions/ime_steps.rb:61
    expected: "ഇൻസ്ക്രിപ്റ്റ് 2"
         got: "" (using ==) (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/ime_steps.rb:63:in `/^in it there must be an element with Malayalam text$/'
    features/ime.feature:53:in `And in it there must be an element with Malayalam text'