Commit 386935b0de12846e35652bcbe6f62e05b5e5593c
1 parent
48f645c5
Exists in
master
and in
29 other branches
Fixed test: features/publish_article.feature
Showing
1 changed file
with
21 additions
and
21 deletions
Show diff stats
features/publish_article.feature
@@ -20,48 +20,48 @@ Feature: publish article | @@ -20,48 +20,48 @@ Feature: publish article | ||
20 | Scenario: publishing an article that doesn't exists in the community | 20 | Scenario: publishing an article that doesn't exists in the community |
21 | Given I am logged in as "joaosilva" | 21 | Given I am logged in as "joaosilva" |
22 | And "Joao Silva" is a member of "Sample Community" | 22 | And "Joao Silva" is a member of "Sample Community" |
23 | - And I am on Joao Silva's control panel | 23 | + And I am on joaosilva's control panel |
24 | And I follow "Manage Content" | 24 | And I follow "Manage Content" |
25 | And I follow "Spread" | 25 | And I follow "Spread" |
26 | And I check "Sample Community" | 26 | And I check "Sample Community" |
27 | And I press "Spread this" | 27 | And I press "Spread this" |
28 | - And I go to Sample Community's sitemap | 28 | + And I go to sample-community's sitemap |
29 | When I follow "Sample Article" | 29 | When I follow "Sample Article" |
30 | Then I should see "This is the first published article" | 30 | Then I should see "This is the first published article" |
31 | 31 | ||
32 | Scenario: publishing an article with a different name | 32 | Scenario: publishing an article with a different name |
33 | Given I am logged in as "joaosilva" | 33 | Given I am logged in as "joaosilva" |
34 | And "Joao Silva" is a member of "Sample Community" | 34 | And "Joao Silva" is a member of "Sample Community" |
35 | - And I am on Joao Silva's control panel | 35 | + And I am on joaosilva's control panel |
36 | And I follow "Manage Content" | 36 | And I follow "Manage Content" |
37 | And I follow "Spread" | 37 | And I follow "Spread" |
38 | And I check "Sample Community" | 38 | And I check "Sample Community" |
39 | And I fill in "Title" with "Another name" | 39 | And I fill in "Title" with "Another name" |
40 | And I press "Spread this" | 40 | And I press "Spread this" |
41 | - When I go to Sample Community's sitemap | 41 | + When I go to sample-community's sitemap |
42 | Then I should see "Another name" | 42 | Then I should see "Another name" |
43 | And I should not see "Sample Article" | 43 | And I should not see "Sample Article" |
44 | 44 | ||
45 | - @selenium | 45 | + @selenium @ignore-hidden-elements |
46 | Scenario: getting an error message when publishing article with same name | 46 | Scenario: getting an error message when publishing article with same name |
47 | Given I am logged in as "joaosilva" | 47 | Given I am logged in as "joaosilva" |
48 | And "Joao Silva" is a member of "Sample Community" | 48 | And "Joao Silva" is a member of "Sample Community" |
49 | - And I am on Joao Silva's control panel | ||
50 | - And I follow "Manage Content" and wait | 49 | + And I am on joaosilva's control panel |
50 | + And I follow "Manage Content" | ||
51 | And I follow "Spread" | 51 | And I follow "Spread" |
52 | And I check "Sample Community" | 52 | And I check "Sample Community" |
53 | And I press "Spread this" | 53 | And I press "Spread this" |
54 | And I am not logged in | 54 | And I am not logged in |
55 | And I am logged in as "mariasilva" | 55 | And I am logged in as "mariasilva" |
56 | And "Maria Silva" is a member of "Sample Community" | 56 | And "Maria Silva" is a member of "Sample Community" |
57 | - And I am on Maria Silva's control panel | 57 | + And I am on mariasilva's control panel |
58 | And I follow "Manage Content" | 58 | And I follow "Manage Content" |
59 | And I follow "New content" | 59 | And I follow "New content" |
60 | - And I follow "Text article with Textile markup language" and wait | 60 | + And I follow "Text article with Textile markup language" |
61 | And I fill in the following: | 61 | And I fill in the following: |
62 | | Title | Sample Article | | 62 | | Title | Sample Article | |
63 | | Text | this is Maria's first published article | | 63 | | Text | this is Maria's first published article | |
64 | - And I press "Save" and wait | 64 | + And I press "Save" |
65 | And I follow "Spread" | 65 | And I follow "Spread" |
66 | And I check "Sample Community" | 66 | And I check "Sample Community" |
67 | When I press "Spread this" | 67 | When I press "Spread this" |
@@ -77,13 +77,13 @@ Feature: publish article | @@ -77,13 +77,13 @@ Feature: publish article | ||
77 | And "Joao Silva" is a member of "Sample Community" | 77 | And "Joao Silva" is a member of "Sample Community" |
78 | And "Joao Silva" is a member of "Another Community1" | 78 | And "Joao Silva" is a member of "Another Community1" |
79 | And "Joao Silva" is a member of "Another Community2" | 79 | And "Joao Silva" is a member of "Another Community2" |
80 | - And I am on Joao Silva's control panel | 80 | + And I am on joaosilva's control panel |
81 | And I follow "Manage Content" | 81 | And I follow "Manage Content" |
82 | And I follow "Spread" | 82 | And I follow "Spread" |
83 | And I check "Sample Community" | 83 | And I check "Sample Community" |
84 | And I press "Spread this" | 84 | And I press "Spread this" |
85 | And I should not see "This article name is already in use in the following community(ies):" | 85 | And I should not see "This article name is already in use in the following community(ies):" |
86 | - And I am on Joao Silva's control panel | 86 | + And I am on joaosilva's control panel |
87 | And I follow "Manage Content" | 87 | And I follow "Manage Content" |
88 | And I follow "Spread" | 88 | And I follow "Spread" |
89 | And I check "Sample Community" | 89 | And I check "Sample Community" |
@@ -91,30 +91,30 @@ Feature: publish article | @@ -91,30 +91,30 @@ Feature: publish article | ||
91 | And I check "Another Community2" | 91 | And I check "Another Community2" |
92 | When I press "Spread this" | 92 | When I press "Spread this" |
93 | Then I should see "The title (article name) is already being used by another article, please use another title." | 93 | Then I should see "The title (article name) is already being used by another article, please use another title." |
94 | - When I go to Another Community1's sitemap | 94 | + When I go to another-community1's sitemap |
95 | Then I should see "Sample Article" | 95 | Then I should see "Sample Article" |
96 | - When I go to Another Community2's sitemap | 96 | + When I go to another-community2's sitemap |
97 | Then I should see "Sample Article" | 97 | Then I should see "Sample Article" |
98 | 98 | ||
99 | Scenario: publishing articles with the same name in a moderated community | 99 | Scenario: publishing articles with the same name in a moderated community |
100 | Given I am logged in as "joaosilva" | 100 | Given I am logged in as "joaosilva" |
101 | And "Joao Silva" is a member of "Sample Community" | 101 | And "Joao Silva" is a member of "Sample Community" |
102 | And "Joao Silva" is admin of "Sample Community" | 102 | And "Joao Silva" is admin of "Sample Community" |
103 | - And I am on Sample Community's control panel | 103 | + And I am on sample-community's control panel |
104 | And I follow "Community Info and settings" | 104 | And I follow "Community Info and settings" |
105 | And I choose "profile_data_moderated_articles_true" | 105 | And I choose "profile_data_moderated_articles_true" |
106 | And I press "Save" | 106 | And I press "Save" |
107 | - And I am on Joao Silva's control panel | 107 | + And I am on joaosilva's control panel |
108 | And I follow "Manage Content" | 108 | And I follow "Manage Content" |
109 | And I follow "Spread" | 109 | And I follow "Spread" |
110 | And I check "Sample Community" | 110 | And I check "Sample Community" |
111 | And I press "Spread this" | 111 | And I press "Spread this" |
112 | - And I am on Joao Silva's control panel | 112 | + And I am on joaosilva's control panel |
113 | And I follow "Manage Content" | 113 | And I follow "Manage Content" |
114 | And I follow "Spread" | 114 | And I follow "Spread" |
115 | And I check "Sample Community" | 115 | And I check "Sample Community" |
116 | And I press "Spread this" | 116 | And I press "Spread this" |
117 | - And I am on Sample Community's control panel | 117 | + And I am on sample-community's control panel |
118 | And I follow "Tasks" | 118 | And I follow "Tasks" |
119 | And I choose "Accept" | 119 | And I choose "Accept" |
120 | And I press "Apply!" | 120 | And I press "Apply!" |
@@ -126,17 +126,17 @@ Feature: publish article | @@ -126,17 +126,17 @@ Feature: publish article | ||
126 | Scenario: ask to publish an article that was deleted before approval | 126 | Scenario: ask to publish an article that was deleted before approval |
127 | Given I am logged in as "joaosilva" | 127 | Given I am logged in as "joaosilva" |
128 | And "Joao Silva" is admin of "Sample Community" | 128 | And "Joao Silva" is admin of "Sample Community" |
129 | - And I am on Sample Community's control panel | 129 | + And I am on sample-community's control panel |
130 | And I follow "Community Info and settings" | 130 | And I follow "Community Info and settings" |
131 | And I choose "profile_data_moderated_articles_true" | 131 | And I choose "profile_data_moderated_articles_true" |
132 | And I press "Save" | 132 | And I press "Save" |
133 | - And I am on Joao Silva's control panel | 133 | + And I am on joaosilva's control panel |
134 | And I follow "Manage Content" | 134 | And I follow "Manage Content" |
135 | And I follow "Spread" | 135 | And I follow "Spread" |
136 | And I check "Sample Community" | 136 | And I check "Sample Community" |
137 | And I press "Spread this" | 137 | And I press "Spread this" |
138 | And "joaosilva" has no articles | 138 | And "joaosilva" has no articles |
139 | - And I am on Sample Community's control panel | 139 | + And I am on sample-community's control panel |
140 | When I follow "Tasks" | 140 | When I follow "Tasks" |
141 | Then I should see "The article was removed." | 141 | Then I should see "The article was removed." |
142 | And I press "Apply!" | 142 | And I press "Apply!" |