forked from michaek/refinerycms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented :translator role whereby a user is allowed access only to…
… update pages that not the default frontend locale.
- Loading branch information
Showing
7 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
@refinerycms @pages @pages-translate @i18n | |||
Feature: Translate Pages | |||
In order to make the content on my website accessible in many countries | |||
As a translator | |||
I want to translate manage pages | |||
|
|||
Background: | |||
Given A Refinery user exists | |||
And I am a logged in Refinery Translator | |||
And I have pages titled Home, About | |||
|
|||
Scenario: Pages List | |||
When I go to the list of pages | |||
Then I should see "Home" | |||
And I should see "About" | |||
|
|||
Scenario: Add page to main locale | |||
When I go to the list of pages | |||
And I follow "Add new page" | |||
And I fill in "Title" with "Pickles are Cucumbers Soaked in Evil" | |||
And I press "Save" | |||
Then I should see "You do not have the required permission to modify pages in this language" | |||
And I should have 2 pages | |||
|
|||
Scenario: Add page to second locale | |||
Given I have frontend locales en, fr | |||
When I go to the list of pages | |||
And I follow "Add new page" | |||
And I follow "Fr" within "#switch_locale_picker" | |||
And I fill in "Title" with "Pickles sont Concombres Trempé dans le Mal" | |||
And I press "Save" | |||
Then I should see "'Pickles sont Concombres Trempé dans le Mal' was successfully added." | |||
And I should have 3 pages | |||
|
|||
Scenario: Delete page from main locale | |||
Given I only have a page titled "test" | |||
When I go to the list of pages | |||
And I follow "Remove this page forever" | |||
Then I should see "You do not have the required permission to modify pages in this language." | |||
And I should have 1 pages |