Commit 386935b0de12846e35652bcbe6f62e05b5e5593c
1 parent
48f645c5
Exists in
master
and in
28 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 | 20 | Scenario: publishing an article that doesn't exists in the community |
21 | 21 | Given I am logged in as "joaosilva" |
22 | 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 | 24 | And I follow "Manage Content" |
25 | 25 | And I follow "Spread" |
26 | 26 | And I check "Sample Community" |
27 | 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 | 29 | When I follow "Sample Article" |
30 | 30 | Then I should see "This is the first published article" |
31 | 31 | |
32 | 32 | Scenario: publishing an article with a different name |
33 | 33 | Given I am logged in as "joaosilva" |
34 | 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 | 36 | And I follow "Manage Content" |
37 | 37 | And I follow "Spread" |
38 | 38 | And I check "Sample Community" |
39 | 39 | And I fill in "Title" with "Another name" |
40 | 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 | 42 | Then I should see "Another name" |
43 | 43 | And I should not see "Sample Article" |
44 | 44 | |
45 | - @selenium | |
45 | + @selenium @ignore-hidden-elements | |
46 | 46 | Scenario: getting an error message when publishing article with same name |
47 | 47 | Given I am logged in as "joaosilva" |
48 | 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 | 51 | And I follow "Spread" |
52 | 52 | And I check "Sample Community" |
53 | 53 | And I press "Spread this" |
54 | 54 | And I am not logged in |
55 | 55 | And I am logged in as "mariasilva" |
56 | 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 | 58 | And I follow "Manage Content" |
59 | 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 | 61 | And I fill in the following: |
62 | 62 | | Title | Sample Article | |
63 | 63 | | Text | this is Maria's first published article | |
64 | - And I press "Save" and wait | |
64 | + And I press "Save" | |
65 | 65 | And I follow "Spread" |
66 | 66 | And I check "Sample Community" |
67 | 67 | When I press "Spread this" |
... | ... | @@ -77,13 +77,13 @@ Feature: publish article |
77 | 77 | And "Joao Silva" is a member of "Sample Community" |
78 | 78 | And "Joao Silva" is a member of "Another Community1" |
79 | 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 | 81 | And I follow "Manage Content" |
82 | 82 | And I follow "Spread" |
83 | 83 | And I check "Sample Community" |
84 | 84 | And I press "Spread this" |
85 | 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 | 87 | And I follow "Manage Content" |
88 | 88 | And I follow "Spread" |
89 | 89 | And I check "Sample Community" |
... | ... | @@ -91,30 +91,30 @@ Feature: publish article |
91 | 91 | And I check "Another Community2" |
92 | 92 | When I press "Spread this" |
93 | 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 | 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 | 97 | Then I should see "Sample Article" |
98 | 98 | |
99 | 99 | Scenario: publishing articles with the same name in a moderated community |
100 | 100 | Given I am logged in as "joaosilva" |
101 | 101 | And "Joao Silva" is a member of "Sample Community" |
102 | 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 | 104 | And I follow "Community Info and settings" |
105 | 105 | And I choose "profile_data_moderated_articles_true" |
106 | 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 | 108 | And I follow "Manage Content" |
109 | 109 | And I follow "Spread" |
110 | 110 | And I check "Sample Community" |
111 | 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 | 113 | And I follow "Manage Content" |
114 | 114 | And I follow "Spread" |
115 | 115 | And I check "Sample Community" |
116 | 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 | 118 | And I follow "Tasks" |
119 | 119 | And I choose "Accept" |
120 | 120 | And I press "Apply!" |
... | ... | @@ -126,17 +126,17 @@ Feature: publish article |
126 | 126 | Scenario: ask to publish an article that was deleted before approval |
127 | 127 | Given I am logged in as "joaosilva" |
128 | 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 | 130 | And I follow "Community Info and settings" |
131 | 131 | And I choose "profile_data_moderated_articles_true" |
132 | 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 | 134 | And I follow "Manage Content" |
135 | 135 | And I follow "Spread" |
136 | 136 | And I check "Sample Community" |
137 | 137 | And I press "Spread this" |
138 | 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 | 140 | When I follow "Tasks" |
141 | 141 | Then I should see "The article was removed." |
142 | 142 | And I press "Apply!" | ... | ... |