forked from ec-europa/joinup-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomepage.feature
More file actions
219 lines (206 loc) · 9.71 KB
/
homepage.feature
File metadata and controls
219 lines (206 loc) · 9.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
@api
Feature: Homepage
In order to present a good introduction of the website to a new visitor
As a product owner
I want to highlight the most important sections on the homepage
Scenario: Statistics about important content types are shown to anonymous users
Given I am not logged in
And I am on the homepage
# At the very start of the test there is no content yet.
Then I should see the following statistics:
| Solutions | 0 |
| Collections | 0 |
| Content | 0 |
# Test that the page is successfully cached.
When I reload the page
Then the page should be cached
Given the following collections:
| title | state |
| Political sciences | draft |
| Forms of government | proposed |
| Social classes | validated |
| Elections | archival request |
| Parliament | deletion request |
| Party structure | archived |
And the following solutions:
| title | state |
| Economic theory | draft |
| Economic history | proposed |
| Laws of economics | validated |
| Econometrics | deletion request |
| Planned economy | needs update |
| Economic growth | blacklisted |
And custom_page content:
| title | collection |
| Developing economics | Social classes |
And discussion content:
| title | state | collection |
| Prosperity economics | needs update | Social classes |
| Cost-benefit analysis | proposed | Social classes |
| Economic systems | validated | Social classes |
| Socialist schools before Marx | archived | Social classes |
And document content:
| title | state | collection |
| Socialist economics | validated | Social classes |
And event content:
| title | state | collection |
| Trotskism | draft | Social classes |
| Corporative economic theories | validated | Social classes |
| Social economics | needs update | Social classes |
| Labour theory | proposed | Social classes |
And news content:
| title | state | collection |
| Regional economy | draft | Social classes |
| World economy | proposed | Social classes |
| Economic cooperation | validated | Social classes |
| Economic dynamics | deletion request | Social classes |
| Economic cycles | needs update | Social classes |
And newsletter content:
| title |
| Labour relations |
# Only statistics of publicly visible content should be counted.
When I reload the page
Then I should see the following statistics:
| Solutions | 2 |
| Collections | 4 |
| Content | 5 |
# The cache should have been cleared when new content is created.
And the page should not be cached
# The page should still be cacheable.
When I reload the page
Then the page should be cached
# The search page cache is not invalidated correctly and shows stale
# results. This will be fixed in ISAICP-3428. Remove this workaround when
# working on that issue.
# @see https://webgate.ec.europa.eu/CITnet/jira/browse/ISAICP-3428
Given the cache has been cleared
# Check if the "Solutions" link leads to the pre-filtered search results.
# This shows solutions in the states 'validated' and 'deletion request'.
When I click "Solutions" in the "Header" region
Then I should see the heading "Solutions"
And I should see the following lines of text:
| Laws of economics |
| Econometrics |
But I should not see the following lines of text:
| Political sciences |
| Forms of government |
| Social classes |
| Elections |
| Parliament |
| Party structure |
| Economic theory |
| Economic history |
| Planned economy |
| Economic growth |
| Developing economics |
| Prosperity economics |
| Cost-benefit analysis |
| Economic systems |
| Socialist schools before Marx |
| title |
| Socialist economics |
| title |
| Trotskism |
| Corporative economic theories |
| Social economics |
| Labour theory |
| Regional economy |
| World economy |
| Economic cooperation |
| Economic dynamics |
| Economic cycles |
| Labour relations |
# Check if the "Collections" link leads to the pre-filtered search results.
# This shows collections in the states "validated', 'deletion request',
# 'archival request', and 'archived'.
When I go to the homepage
Then I should see the text "Joinup is a collaborative platform created by the European Commission and funded by the European Union via the Interoperability solutions for public administrations, businesses and citizens (ISA2) Programme. It offers several services that aim to help e-Government professionals share their experience with each other. We also hope to support them to find, choose, re-use, develop and implement interoperability solutions."
When I click "Collections" in the "Header" region
Then I should see the heading "Collections"
And I should see the following lines of text:
| Social classes |
| Parliament |
| Elections |
| Party structure |
But I should not see the following lines of text:
| Political sciences |
| Forms of government |
| Economic theory |
| Economic history |
| Laws of economics |
| Econometrics |
| Planned economy |
| Economic growth |
| Developing economics |
| Prosperity economics |
| Cost-benefit analysis |
| Economic systems |
| Socialist schools before Marx |
| title |
| Socialist economics |
| title |
| Trotskism |
| Corporative economic theories |
| Social economics |
| Labour theory |
| Regional economy |
| World economy |
| Economic cooperation |
| Economic dynamics |
| Economic cycles |
| Labour relations |
# Check if the "Content" link leads to the pre-filtered search results.
# This shows community content in the states 'validated' and 'archived'.
When I go to the homepage
And I click "Events, discussions, news ..." in the "Header" region
Then I should see the heading "Keep up to date"
And I should see the following lines of text:
| Economic systems |
| Socialist schools before Marx |
| Socialist economics |
| Corporative economic theories |
| Economic cooperation |
But I should not see the following lines of text:
| Political sciences |
| Forms of government |
| Social classes |
| Elections |
| Parliament |
| Party structure |
| Economic theory |
| Economic history |
| Laws of economics |
| Econometrics |
| Planned economy |
| Economic growth |
| Developing economics |
| Prosperity economics |
| Cost-benefit analysis |
| Trotskism |
| Social economics |
| Labour theory |
| Regional economy |
| World economy |
| Economic dynamics |
| Economic cycles |
| Labour relations |
Scenario: the small homepage header should be shown only to logged in users.
When I am an anonymous user
And I go to the homepage
Then I should not see the small header
# The header should still be shown in the other pages.
When I click "Collections"
Then I should see the small header
When I am logged in as a user with the "authenticated" role
And I go to the homepage
Then I should see the text "Joinup is a collaborative platform created by the European Commission and funded by the European Union via the Interoperability solutions for public administrations, businesses and citizens (ISA2) Programme. It offers several services that aim to help e-Government professionals share their experience with each other. We also hope to support them to find, choose, re-use, develop and implement interoperability solutions."
And I should see the small header
# The header should still be shown in the other pages.
When I click "Collections"
Then I should see the small header
Scenario: Only specific social network links are available in the footer.
When I am on the homepage
Then I should see the link "LinkedIn" in the Footer region
And I should see the link "Twitter" in the Footer region
But I should not see the link "Facebook" in the Footer region
And I should not see the link "Google+" in the Footer region