Commit 03c1131a71ecd761c8d1631773f066eee74819a3

Authored by Larissa Reis
1 parent 568c06a7

[publish] Fixes some cucumber tests

features/approve_article.feature
... ... @@ -42,7 +42,7 @@ Feature: approve article
42 42 And I go to mariasilva's cms
43 43 And I follow "Sample Article"
44 44 And I follow "Spread"
45   - And I check "Sample Community"
  45 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
46 46 And I press "Spread this"
47 47 And I am logged in as "joaosilva"
48 48 And I go to sample-community's control panel
... ... @@ -58,7 +58,7 @@ Feature: approve article
58 58 Given I am logged in as "mariasilva"
59 59 And I follow "Dub Wars"
60 60 And I follow "Spread"
61   - And I check "Sample Community"
  61 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
62 62 And I press "Spread this"
63 63 And I follow "Delete"
64 64 And I confirm the browser dialog
... ...
features/publish_article.feature
... ... @@ -17,13 +17,14 @@ Feature: publish article
17 17 | owner | name | body |
18 18 | joaosilva | Sample Article | This is the first published article |
19 19  
  20 + @selenium
20 21 Scenario: publishing an article that doesn't exists in the community
21 22 Given I am logged in as "joaosilva"
22 23 And "Joao Silva" is a member of "Sample Community"
23 24 And I am on joaosilva's control panel
24 25 And I follow "Manage Content"
25 26 And I follow "Spread"
26   - And I check "Sample Community"
  27 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
27 28 And I press "Spread this"
28 29 When I go to sample-community's sitemap
29 30 Then I should see "Sample Article"
... ... @@ -51,7 +52,7 @@ Feature: publish article
51 52 And I am on joaosilva's control panel
52 53 And I follow "Manage Content"
53 54 And I follow "Spread"
54   - And I check "Sample Community"
  55 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
55 56 And I press "Spread this"
56 57 And I am not logged in
57 58 And I am logged in as "mariasilva"
... ... @@ -66,10 +67,11 @@ Feature: publish article
66 67 | Text | this is Maria's first published article |
67 68 And I press "Save"
68 69 And I follow "Spread"
69   - And I check "Sample Community"
  70 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
70 71 When I press "Spread this"
71 72 Then I should see "The title (article name) is already being used by another article, please use another title."
72 73  
  74 + @selenium
73 75 Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again,
74 76 stills publishing the article in the other communities.
75 77 Given the following communities
... ... @@ -83,15 +85,15 @@ Feature: publish article
83 85 And I am on joaosilva's control panel
84 86 And I follow "Manage Content"
85 87 And I follow "Spread"
86   - And I check "Sample Community"
  88 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
87 89 And I press "Spread this"
88 90 And I should not see "This article name is already in use in the following community(ies):"
89 91 And I am on joaosilva's control panel
90 92 And I follow "Manage Content"
91 93 And I follow "Spread"
92   - And I check "Sample Community"
93   - And I check "Another Community1"
94   - And I check "Another Community2"
  94 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
  95 + And I type in "Another Community1" into autocomplete list "search-communities-to-publish" and I choose "Another Community1"
  96 + And I type in "Another Community2" into autocomplete list "search-communities-to-publish" and I choose "Another Community2"
95 97 When I press "Spread this"
96 98 Then I should see "The title (article name) is already being used by another article, please use another title."
97 99 When I go to another-community1's sitemap
... ... @@ -99,6 +101,7 @@ Feature: publish article
99 101 When I go to another-community2's sitemap
100 102 Then I should see "Sample Article"
101 103  
  104 + @selenium
102 105 Scenario: publishing articles with the same name in a moderated community
103 106 Given I am logged in as "joaosilva"
104 107 And "Joao Silva" is a member of "Sample Community"
... ... @@ -110,12 +113,12 @@ Feature: publish article
110 113 And I am on joaosilva's control panel
111 114 And I follow "Manage Content"
112 115 And I follow "Spread"
113   - And I check "Sample Community"
  116 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
114 117 And I press "Spread this"
115 118 And I am on joaosilva's control panel
116 119 And I follow "Manage Content"
117 120 And I follow "Spread"
118   - And I check "Sample Community"
  121 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
119 122 And I press "Spread this"
120 123 And I am on sample-community's control panel
121 124 And I follow "Tasks"
... ... @@ -126,6 +129,7 @@ Feature: publish article
126 129 When I press "Apply!"
127 130 Then I should see "The title (article name) is already being used by another article, please use another title."
128 131  
  132 + @selenium
129 133 Scenario: ask to publish an article that was deleted before approval
130 134 Given I am logged in as "joaosilva"
131 135 And "Joao Silva" is admin of "Sample Community"
... ... @@ -136,7 +140,7 @@ Feature: publish article
136 140 And I am on joaosilva's control panel
137 141 And I follow "Manage Content"
138 142 And I follow "Spread"
139   - And I check "Sample Community"
  143 + And I type in "Sample Community" into autocomplete list "search-communities-to-publish" and I choose "Sample Community"
140 144 And I press "Spread this"
141 145 And "joaosilva" has no articles
142 146 And I am on sample-community's control panel
... ...