Commit 41900a390a400ef1374e99906bf577418ed3f347

Authored by Antonio Terceiro
1 parent 7dd1ad95

Fixing acceptance test

Trying to not depend on a too specific text
Showing 1 changed file with 3 additions and 5 deletions   Show diff stats
features/publish_article.feature
@@ -113,7 +113,7 @@ Feature: publish article @@ -113,7 +113,7 @@ Feature: publish article
113 When I press "Ok!" 113 When I press "Ok!"
114 Then I should see "Validation failed: Slug (the code generated from the article name) is already being used by another article." 114 Then I should see "Validation failed: Slug (the code generated from the article name) is already being used by another article."
115 115
116 - Scenario: ask to publish an article and remove it before approval 116 + Scenario: ask to publish an article that was deleted before approval
117 Given I am logged in as "joaosilva" 117 Given I am logged in as "joaosilva"
118 And "Joao Silva" is admin of "Sample Community" 118 And "Joao Silva" is admin of "Sample Community"
119 And I am on Sample Community's control panel 119 And I am on Sample Community's control panel
@@ -128,8 +128,6 @@ Feature: publish article @@ -128,8 +128,6 @@ Feature: publish article
128 And "joaosilva" has no articles 128 And "joaosilva" has no articles
129 And I am on Sample Community's control panel 129 And I am on Sample Community's control panel
130 When I follow "Tasks" 130 When I follow "Tasks"
131 - Then I should see "Joao Silva wanted to publish an article but it was removed. It cannot be approved." 131 + Then I should see /Joao Silva wanted.*deleted/
132 And I press "Ok!" 132 And I press "Ok!"
133 - And I am on Sample Community's control panel  
134 - When I follow "Tasks"  
135 - Then I should not see "Joao Silva wanted to publish an article but it was removed. It cannot be approved." 133 + Then I should not see /Joao Silva wanted.*deleted/