diff --git a/features/approve_article.feature b/features/approve_article.feature index 90a117d..ac2294a 100644 --- a/features/approve_article.feature +++ b/features/approve_article.feature @@ -42,7 +42,7 @@ Feature: approve article And I go to mariasilva's cms And I follow "Sample Article" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" And I am logged in as "joaosilva" And I go to sample-community's control panel @@ -58,7 +58,7 @@ Feature: approve article Given I am logged in as "mariasilva" And I follow "Dub Wars" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" And I follow "Delete" And I confirm the browser dialog diff --git a/features/publish_article.feature b/features/publish_article.feature index fb7e2f2..199db00 100644 --- a/features/publish_article.feature +++ b/features/publish_article.feature @@ -17,13 +17,14 @@ Feature: publish article | owner | name | body | | joaosilva | Sample Article | This is the first published article | + @selenium 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 joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" When I go to sample-community's sitemap Then I should see "Sample Article" @@ -51,7 +52,7 @@ Feature: publish article And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" And I am not logged in And I am logged in as "mariasilva" @@ -66,10 +67,11 @@ Feature: publish article | Text | this is Maria's first published article | And I press "Save" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" When I press "Spread this" Then I should see "The title (article name) is already being used by another article, please use another title." + @selenium Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again, stills publishing the article in the other communities. Given the following communities @@ -83,15 +85,15 @@ Feature: publish article And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "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 joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" - And I check "Another Community1" - And I check "Another Community2" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" + And I type in "Another Community1" into autocomplete list "search-communities-to-publish" and I choose "Another Community1" + And I type in "Another Community2" into autocomplete list "search-communities-to-publish" and I choose "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 @@ -99,6 +101,7 @@ Feature: publish article When I go to another-community2's sitemap Then I should see "Sample Article" + @selenium 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" @@ -110,12 +113,12 @@ Feature: publish article And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" And I am on sample-community's control panel And I follow "Tasks" @@ -126,6 +129,7 @@ Feature: publish article When I press "Apply!" Then I should see "The title (article name) is already being used by another article, please use another title." + @selenium 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" @@ -136,7 +140,7 @@ Feature: publish article And I am on joaosilva's control panel And I follow "Manage Content" And I follow "Spread" - And I check "Sample Community" + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community" And I press "Spread this" And "joaosilva" has no articles And I am on sample-community's control panel -- libgit2 0.21.2