diff --git a/features/publish_article.feature b/features/publish_article.feature index 8f01d5d..ec59e0b 100644 --- a/features/publish_article.feature +++ b/features/publish_article.feature @@ -20,48 +20,48 @@ Feature: publish article Scenario: publishing an article that doesn't exists in the community Given I am logged in as "joaosilva" And "Joao Silva" is a member of "Sample Community" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I press "Spread this" - And I go to Sample Community's sitemap + And I go to sample-community's sitemap When I follow "Sample Article" Then I should see "This is the first published article" Scenario: publishing an article with a different name Given I am logged in as "joaosilva" And "Joao Silva" is a member of "Sample Community" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I fill in "Title" with "Another name" And I press "Spread this" - When I go to Sample Community's sitemap + When I go to sample-community's sitemap Then I should see "Another name" And I should not see "Sample Article" - @selenium + @selenium @ignore-hidden-elements Scenario: getting an error message when publishing article with same name Given I am logged in as "joaosilva" And "Joao Silva" is a member of "Sample Community" - And I am on Joao Silva's control panel - And I follow "Manage Content" and wait + And I am on joaosilva's control panel + And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I press "Spread this" And I am not logged in And I am logged in as "mariasilva" And "Maria Silva" is a member of "Sample Community" - And I am on Maria Silva's control panel + And I am on mariasilva's control panel And I follow "Manage Content" And I follow "New content" - And I follow "Text article with Textile markup language" and wait + And I follow "Text article with Textile markup language" And I fill in the following: | Title | Sample Article | | Text | this is Maria's first published article | - And I press "Save" and wait + And I press "Save" And I follow "Spread" And I check "Sample Community" When I press "Spread this" @@ -77,13 +77,13 @@ Feature: publish article And "Joao Silva" is a member of "Sample Community" And "Joao Silva" is a member of "Another Community1" And "Joao Silva" is a member of "Another Community2" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I press "Spread this" And I should not see "This article name is already in use in the following community(ies):" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" @@ -91,30 +91,30 @@ Feature: publish article And I check "Another Community2" When I press "Spread this" Then I should see "The title (article name) is already being used by another article, please use another title." - When I go to Another Community1's sitemap + When I go to another-community1's sitemap Then I should see "Sample Article" - When I go to Another Community2's sitemap + When I go to another-community2's sitemap Then I should see "Sample Article" Scenario: publishing articles with the same name in a moderated community Given I am logged in as "joaosilva" And "Joao Silva" is a member of "Sample Community" And "Joao Silva" is admin of "Sample Community" - And I am on Sample Community's control panel + And I am on sample-community's control panel And I follow "Community Info and settings" And I choose "profile_data_moderated_articles_true" And I press "Save" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I press "Spread this" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I press "Spread this" - And I am on Sample Community's control panel + And I am on sample-community's control panel And I follow "Tasks" And I choose "Accept" And I press "Apply!" @@ -126,17 +126,17 @@ Feature: publish article Scenario: ask to publish an article that was deleted before approval Given I am logged in as "joaosilva" And "Joao Silva" is admin of "Sample Community" - And I am on Sample Community's control panel + And I am on sample-community's control panel And I follow "Community Info and settings" And I choose "profile_data_moderated_articles_true" And I press "Save" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" And I press "Spread this" And "joaosilva" has no articles - And I am on Sample Community's control panel + And I am on sample-community's control panel When I follow "Tasks" Then I should see "The article was removed." And I press "Apply!" -- libgit2 0.21.2