Commit d839a4de131914d2ae40be9049d4022ea20a84d2

Authored by Joenio Costa
1 parent 6aa4927c

Fix cucumber tests for publish article

(ActionItem1566)
Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
features/publish_article.feature
... ... @@ -54,7 +54,7 @@ Feature: publish article
54 54 And I follow "Spread"
55 55 And I check "Sample Community"
56 56 When I press "Publish"
57   - Then I should see "Validation failed: Slug (the code generated from the article name) is already being used by another article.:"
  57 + Then I should see "The title (article name) is already being used by another article, please use another title."
58 58  
59 59 Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again,
60 60 stills publishing the article in the other communities.
... ... @@ -79,7 +79,7 @@ Feature: publish article
79 79 And I check "Another Community1"
80 80 And I check "Another Community2"
81 81 When I press "Publish"
82   - Then I should see "Validation failed: Slug (the code generated from the article name) is already being used by another article.:"
  82 + Then I should see "The title (article name) is already being used by another article, please use another title."
83 83 And I am on Another Community1's homepage
84 84 And I follow "View profile"
85 85 When I go to Another Community1's sitemap
... ... @@ -110,9 +110,9 @@ Feature: publish article
110 110 And I am on Sample Community's control panel
111 111 And I follow "Tasks"
112 112 And I press "Ok!"
113   - And I should not see "Validation failed: Slug (the code generated from the article name) is already being used by another article.:"
  113 + And I should not see "The title (article name) is already being used by another article, please use another title."
114 114 When I press "Ok!"
115   - Then I should see "Validation failed: Slug (the code generated from the article name) is already being used by another article."
  115 + Then I should see "The title (article name) is already being used by another article, please use another title."
116 116  
117 117 Scenario: ask to publish an article that was deleted before approval
118 118 Given I am logged in as "joaosilva"
... ...