Commit 03c1131a71ecd761c8d1631773f066eee74819a3
1 parent
568c06a7
Exists in
master
and in
29 other branches
[publish] Fixes some cucumber tests
Showing
2 changed files
with
16 additions
and
12 deletions
Show diff stats
features/approve_article.feature
@@ -42,7 +42,7 @@ Feature: approve article | @@ -42,7 +42,7 @@ Feature: approve article | ||
42 | And I go to mariasilva's cms | 42 | And I go to mariasilva's cms |
43 | And I follow "Sample Article" | 43 | And I follow "Sample Article" |
44 | And I follow "Spread" | 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 | And I press "Spread this" | 46 | And I press "Spread this" |
47 | And I am logged in as "joaosilva" | 47 | And I am logged in as "joaosilva" |
48 | And I go to sample-community's control panel | 48 | And I go to sample-community's control panel |
@@ -58,7 +58,7 @@ Feature: approve article | @@ -58,7 +58,7 @@ Feature: approve article | ||
58 | Given I am logged in as "mariasilva" | 58 | Given I am logged in as "mariasilva" |
59 | And I follow "Dub Wars" | 59 | And I follow "Dub Wars" |
60 | And I follow "Spread" | 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 | And I press "Spread this" | 62 | And I press "Spread this" |
63 | And I follow "Delete" | 63 | And I follow "Delete" |
64 | And I confirm the browser dialog | 64 | And I confirm the browser dialog |
features/publish_article.feature
@@ -17,13 +17,14 @@ Feature: publish article | @@ -17,13 +17,14 @@ Feature: publish article | ||
17 | | owner | name | body | | 17 | | owner | name | body | |
18 | | joaosilva | Sample Article | This is the first published article | | 18 | | joaosilva | Sample Article | This is the first published article | |
19 | 19 | ||
20 | + @selenium | ||
20 | Scenario: publishing an article that doesn't exists in the community | 21 | Scenario: publishing an article that doesn't exists in the community |
21 | Given I am logged in as "joaosilva" | 22 | Given I am logged in as "joaosilva" |
22 | And "Joao Silva" is a member of "Sample Community" | 23 | And "Joao Silva" is a member of "Sample Community" |
23 | And I am on joaosilva's control panel | 24 | And I am on joaosilva's control panel |
24 | And I follow "Manage Content" | 25 | And I follow "Manage Content" |
25 | And I follow "Spread" | 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 | And I press "Spread this" | 28 | And I press "Spread this" |
28 | When I go to sample-community's sitemap | 29 | When I go to sample-community's sitemap |
29 | Then I should see "Sample Article" | 30 | Then I should see "Sample Article" |
@@ -51,7 +52,7 @@ Feature: publish article | @@ -51,7 +52,7 @@ Feature: publish article | ||
51 | And I am on joaosilva's control panel | 52 | And I am on joaosilva's control panel |
52 | And I follow "Manage Content" | 53 | And I follow "Manage Content" |
53 | And I follow "Spread" | 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 | And I press "Spread this" | 56 | And I press "Spread this" |
56 | And I am not logged in | 57 | And I am not logged in |
57 | And I am logged in as "mariasilva" | 58 | And I am logged in as "mariasilva" |
@@ -66,10 +67,11 @@ Feature: publish article | @@ -66,10 +67,11 @@ Feature: publish article | ||
66 | | Text | this is Maria's first published article | | 67 | | Text | this is Maria's first published article | |
67 | And I press "Save" | 68 | And I press "Save" |
68 | And I follow "Spread" | 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 | When I press "Spread this" | 71 | When I press "Spread this" |
71 | Then I should see "The title (article name) is already being used by another article, please use another title." | 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 | Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again, | 75 | Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again, |
74 | stills publishing the article in the other communities. | 76 | stills publishing the article in the other communities. |
75 | Given the following communities | 77 | Given the following communities |
@@ -83,15 +85,15 @@ Feature: publish article | @@ -83,15 +85,15 @@ Feature: publish article | ||
83 | And I am on joaosilva's control panel | 85 | And I am on joaosilva's control panel |
84 | And I follow "Manage Content" | 86 | And I follow "Manage Content" |
85 | And I follow "Spread" | 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 | And I press "Spread this" | 89 | And I press "Spread this" |
88 | And I should not see "This article name is already in use in the following community(ies):" | 90 | And I should not see "This article name is already in use in the following community(ies):" |
89 | And I am on joaosilva's control panel | 91 | And I am on joaosilva's control panel |
90 | And I follow "Manage Content" | 92 | And I follow "Manage Content" |
91 | And I follow "Spread" | 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 | When I press "Spread this" | 97 | When I press "Spread this" |
96 | Then I should see "The title (article name) is already being used by another article, please use another title." | 98 | Then I should see "The title (article name) is already being used by another article, please use another title." |
97 | When I go to another-community1's sitemap | 99 | When I go to another-community1's sitemap |
@@ -99,6 +101,7 @@ Feature: publish article | @@ -99,6 +101,7 @@ Feature: publish article | ||
99 | When I go to another-community2's sitemap | 101 | When I go to another-community2's sitemap |
100 | Then I should see "Sample Article" | 102 | Then I should see "Sample Article" |
101 | 103 | ||
104 | + @selenium | ||
102 | Scenario: publishing articles with the same name in a moderated community | 105 | Scenario: publishing articles with the same name in a moderated community |
103 | Given I am logged in as "joaosilva" | 106 | Given I am logged in as "joaosilva" |
104 | And "Joao Silva" is a member of "Sample Community" | 107 | And "Joao Silva" is a member of "Sample Community" |
@@ -110,12 +113,12 @@ Feature: publish article | @@ -110,12 +113,12 @@ Feature: publish article | ||
110 | And I am on joaosilva's control panel | 113 | And I am on joaosilva's control panel |
111 | And I follow "Manage Content" | 114 | And I follow "Manage Content" |
112 | And I follow "Spread" | 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 | And I press "Spread this" | 117 | And I press "Spread this" |
115 | And I am on joaosilva's control panel | 118 | And I am on joaosilva's control panel |
116 | And I follow "Manage Content" | 119 | And I follow "Manage Content" |
117 | And I follow "Spread" | 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 | And I press "Spread this" | 122 | And I press "Spread this" |
120 | And I am on sample-community's control panel | 123 | And I am on sample-community's control panel |
121 | And I follow "Tasks" | 124 | And I follow "Tasks" |
@@ -126,6 +129,7 @@ Feature: publish article | @@ -126,6 +129,7 @@ Feature: publish article | ||
126 | When I press "Apply!" | 129 | When I press "Apply!" |
127 | Then I should see "The title (article name) is already being used by another article, please use another title." | 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 | Scenario: ask to publish an article that was deleted before approval | 133 | Scenario: ask to publish an article that was deleted before approval |
130 | Given I am logged in as "joaosilva" | 134 | Given I am logged in as "joaosilva" |
131 | And "Joao Silva" is admin of "Sample Community" | 135 | And "Joao Silva" is admin of "Sample Community" |
@@ -136,7 +140,7 @@ Feature: publish article | @@ -136,7 +140,7 @@ Feature: publish article | ||
136 | And I am on joaosilva's control panel | 140 | And I am on joaosilva's control panel |
137 | And I follow "Manage Content" | 141 | And I follow "Manage Content" |
138 | And I follow "Spread" | 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 | And I press "Spread this" | 144 | And I press "Spread this" |
141 | And "joaosilva" has no articles | 145 | And "joaosilva" has no articles |
142 | And I am on sample-community's control panel | 146 | And I am on sample-community's control panel |