Contents

Manipulate languages on the Archive

In order to be multicultural As as an admin I'd like to be able to manipulate languages on the Archive

Scenario: An admin can add a language

  • Given basic languages
  • And I am logged in as a "translation" admin
  • When I go to the languages page
  • And I follow "Add a Language"
  • And I fill in "Name" with "Klingon"
  • And I fill in "Abbreviation" with "tlh"
  • And I fill in "Name for alphabetical sorting" with "Klingon"
  • And I press "Create Language"
  • Then I should see "Language was successfully added."
  • And I should see "Work Languages"
  • And I should see "Klingon"
  • And I should see "Klingon (tlh)"

Scenario: Adding Abuse support for a language

  • Given the following languages exist
    nameshortsortable_name
    ArabicarArabic
    EspanolesEspanol
  • When I am logged in as a "policy_and_abuse" admin
  • And I go to the languages page
  • And I follow "Edit"
  • And I check "Abuse support available"
  • And I press "Update Language"
  • Then I should see "Language was successfully updated."
  • When I follow "Policy Questions & Abuse Reports"
  • Then I should see "Arabic" within "select#abuse_report_language"
  • And I should not see "Espanol" within "select#abuse_report_language"

Scenario: Adding a language to the Support form

  • Given the following language exists
    nameshortsortable_name
    SindarinsjSindarin
    KlingontlhKlingon
  • When I am logged in as a "support" admin
  • And I go to the languages page
  • And I follow "Edit"
  • And I check "Support available"
  • And I press "Update Language"
  • Then I should see "Language was successfully updated."
  • When I follow "Technical Support & Feedback"
  • Then I should see "Klingon" within "select#feedback_language"
  • And I should not see "Sindarin" within "select#feedback_language"

Source: features/admins/admin_languages.feature at commit f09caa86, Otwarchive (GPL license).