ref: master
features/edit_language_block.feature
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
Feature: edit language of block As a profile owner I want to configure in which language a block will be displayed Background: Given the following users | login | name | | joaosilva | Jose Silva | And the following blocks | owner | type | | joaosilva | ArticleBlock | | joaosilva | LinkListBlock | And I am logged in as "joaosilva" Scenario: display in all languages Given I go to edit ArticleBlock of joaosilva And I fill in "Custom title for this block" with "Block displayed" And I select "all languages" from "Show for" And I press "Save" When I go to joaosilva's homepage Then I should see "Block displayed" Scenario: display in the selected language Given I go to edit LinkListBlock of joaosilva And I fill in "Custom title for this block" with "Block displayed" And I select "English" from "Show for" And I press "Save" And my browser prefers English When I go to joaosilva's homepage Then I should see "Block displayed" Scenario: not display in a not selected language Given I go to edit LinkListBlock of joaosilva And I fill in "Custom title for this block" with "Block not displayed" And I select "English" from "Show for" And I press "Save" And my browser prefers Portuguese When I go to joaosilva's homepage Then I should not see "Block displayed" |