Contents

Languages

@works

Scenario: Browse works by language

Admin set up the language

Given I am logged in as an admin

And I go to the admin-settings page

TODO: Then I should be able to add a language in the front end

Scenario: post a work in another language

  • Given the following activated users exist
    loginpassword
    englishuserpassword
    germanuser1password
    germanuser2password
    frenchuserpassword
  • And basic tags
  • And basic languages
  • When I am logged in as "germanuser2" with password "password"
  • And I post the work "Die Rache der Sith"
  • And I follow "Edit"
  • And I select "Deutsch" from "Choose a language"
  • And I press "Preview"
  • And I press "Update"
  • Then I should see "Die Rache der Sith"
  • When I log out
  • And I am logged in as "englishuser" with password "password"
  • And I post the work "Revenge of the Sith"
  • Then I should see "Revenge of the Sith"
  • When I am on the languages page
  • And all indexing jobs have been run
  • Then I should see "Deutsch"
  • When I follow "1 work"
  • Then I should see "1 Work in Deutsch"
  • And I should see "Die Rache der Sith"
  • And I should not see "Revenge of the Sith"
  • When I am on the languages page
  • Then I should see "English"
  • And I should see "English" within "dl.language"

Source: features/other_a/languages.feature at commit f09caa86, Otwarchive (GPL license).