Page MenuHomePhabricator

Merge tests/browser/environments.yml and tests/browser/config/config.yml in WikidataBrowserTests
Closed, ResolvedPublic

Description

WikidataBrowserTests uses custom configuration file, tests/browser/config/config.yml instead of tests/browser/environments.yml. Move all data from config.yml to environments.yml and update the code to use environments.yml.

1$ bundle exec cucumber --tag @local_config
2# Wikidata UI tests
3#
4# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
5# License:: GNU GPL v2+
6#
7# feature definition for item aliases tests
8@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
9Feature: Edit aliases
10
11 Background: # features/aliases.feature:11
12 Given I am on an item page # features/step_definitions/entity_steps.rb:17
13 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
14 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
15
16 @ui_only
17 Scenario: Type new alias # features/aliases.feature:17
18 When I click the header edit button # features/step_definitions/header_steps.rb:10
19 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
20 Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
21 And Header save button should be there # features/step_definitions/header_steps.rb:45
22 And Modified alias input field should be there # features/step_definitions/aliases_steps.rb:44
23 And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
24
25 @ui_only
26 Scenario Outline: Cancel aliases # features/aliases.feature:26
27 When I click the header edit button # features/step_definitions/header_steps.rb:10
28 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
29 And I <cancel> # features/step_definitions/header_steps.rb:14
30 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
31 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
32 And New alias input field should not be there # features/step_definitions/aliases_steps.rb:40
33 And Header save button should not be there # features/step_definitions/header_steps.rb:49
34 And Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
35
36 Examples:
37 | cancel |
38 | click the header cancel button |
39 | press the ESC key in the new alias input field |
40
41 @modify_entity @save_aliases
42 Scenario Outline: Save alias # features/aliases.feature:42
43 When I click the header edit button # features/step_definitions/header_steps.rb:10
44 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
45 And I <save> # features/step_definitions/header_steps.rb:18
46 Then Aliases list should not be empty # features/step_definitions/aliases_steps.rb:64
47 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
48 And Header save button should not be there # features/step_definitions/header_steps.rb:49
49 And Header edit button should be there # features/step_definitions/header_steps.rb:29
50 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
51 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
52
53 Examples:
54 | save |
55 | click the header save button |
56 | press the RETURN key in the new alias input field |
57
58 @modify_entity @save_aliases
59 Scenario Outline: Save alias and reload # features/aliases.feature:59
60 When I click the header edit button # features/step_definitions/header_steps.rb:10
61 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
62 And I <save> # features/step_definitions/header_steps.rb:18
63 And I reload the page # features/step_definitions/entity_steps.rb:114
64 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
65 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
66 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
67
68 Examples:
69 | save |
70 | click the header save button |
71 | press the RETURN key in the new alias input field |
72
73 @modify_entity @save_aliases @smoke
74 Scenario: Save multiple aliases # features/aliases.feature:74
75 When I click the header edit button # features/step_definitions/header_steps.rb:10
76 And I enter "alias1", "alias2", "alias3" as new aliases # features/step_definitions/aliases_steps.rb:24
77 And I click the header save button # features/step_definitions/header_steps.rb:18
78 Then Aliases list should not be empty # features/step_definitions/aliases_steps.rb:64
79 And There should be 3 aliases in the list # features/step_definitions/aliases_steps.rb:72
80 And List of aliases should be "alias1", "alias2", "alias3" # features/step_definitions/aliases_steps.rb:76
81
82 @modify_entity @save_aliases
83 Scenario: Remove alias # features/aliases.feature:83
84 When I click the header edit button # features/step_definitions/header_steps.rb:10
85 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
86 And I click the header save button # features/step_definitions/header_steps.rb:18
87 And I click the header edit button # features/step_definitions/header_steps.rb:10
88 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
89 And I click the header save button # features/step_definitions/header_steps.rb:18
90 Then List of aliases should be "alias2" # features/step_definitions/aliases_steps.rb:76
91 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
92
93 @modify_entity @save_aliases
94 Scenario: Remove all aliases # features/aliases.feature:94
95 When I click the header edit button # features/step_definitions/header_steps.rb:10
96 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
97 And I click the header save button # features/step_definitions/header_steps.rb:18
98 And I click the header edit button # features/step_definitions/header_steps.rb:10
99 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
100 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
101 And I click the header save button # features/step_definitions/header_steps.rb:18
102 Then Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
103 And Header edit button should be there # features/step_definitions/header_steps.rb:29
104
105 @modify_entity @save_aliases
106 Scenario: Remove all aliases and reload # features/aliases.feature:106
107 When I click the header edit button # features/step_definitions/header_steps.rb:10
108 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
109 And I click the header save button # features/step_definitions/header_steps.rb:18
110 And I click the header edit button # features/step_definitions/header_steps.rb:10
111 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
112 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
113 And I click the header save button # features/step_definitions/header_steps.rb:18
114 And I reload the page # features/step_definitions/entity_steps.rb:114
115 Then Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
116 And Header edit button should be there # features/step_definitions/header_steps.rb:29
117
118 @ui_only
119 Scenario: Edit aliases UI # features/aliases.feature:119
120 When I click the header edit button # features/step_definitions/header_steps.rb:10
121 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
122 And I click the header save button # features/step_definitions/header_steps.rb:18
123 And I click the header edit button # features/step_definitions/header_steps.rb:10
124 Then New alias input field should be there # features/step_definitions/aliases_steps.rb:36
125 And First alias input field should contain alias123 # features/step_definitions/aliases_steps.rb:80
126 And Header save button should not be there # features/step_definitions/header_steps.rb:49
127 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
128
129 @modify_entity @save_aliases
130 Scenario: Edit multiple aliases # features/aliases.feature:130
131 When I click the header edit button # features/step_definitions/header_steps.rb:10
132 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
133 And I click the header save button # features/step_definitions/header_steps.rb:18
134 And I click the header edit button # features/step_definitions/header_steps.rb:10
135 And I enter "alias3", "alias4" as new aliases # features/step_definitions/aliases_steps.rb:24
136 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
137 And I change the first alias to alias5 # features/step_definitions/aliases_steps.rb:28
138 And I click the header save button # features/step_definitions/header_steps.rb:18
139 Then There should be 3 aliases in the list # features/step_definitions/aliases_steps.rb:72
140 And List of aliases should be "alias5", "alias3", "alias4" # features/step_definitions/aliases_steps.rb:76
141
142 @ui_only
143 Scenario: Duplicated aliases detection # features/aliases.feature:143
144 When I click the header edit button # features/step_definitions/header_steps.rb:10
145 And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
146 Then Duplicate alias input field should be there # features/step_definitions/aliases_steps.rb:52
147 And Header save button should be there # features/step_definitions/header_steps.rb:45
148 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
149
150 @ui_only
151 Scenario: Duplicated aliases resolve # features/aliases.feature:151
152 When I click the header edit button # features/step_definitions/header_steps.rb:10
153 And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
154 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
155 Then Duplicate alias input field should not be there # features/step_definitions/aliases_steps.rb:56
156
157 @modify_entity @save_aliases
158 Scenario: Save duplicated aliases # features/aliases.feature:158
159 When I click the header edit button # features/step_definitions/header_steps.rb:10
160 And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
161 And I click the header save button # features/step_definitions/header_steps.rb:18
162 Then There should be 2 aliases in the list # features/step_definitions/aliases_steps.rb:72
163 And List of aliases should be "alias1", "alias2" # features/step_definitions/aliases_steps.rb:76
164
165 @modify_entity @save_aliases
166 Scenario Outline: Special inputs for aliases # features/aliases.feature:166
167 When I click the header edit button # features/step_definitions/header_steps.rb:10
168 And I enter <alias> as new aliases # features/step_definitions/aliases_steps.rb:24
169 And I click the header save button # features/step_definitions/header_steps.rb:18
170 Then There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
171 And List of aliases should be <alias_expected> # features/step_definitions/aliases_steps.rb:76
172
173 Examples:
174 | alias | alias_expected |
175 | "0" | "0" |
176 | " norm a lize me " | "norm a lize me" |
177 | "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
178
179 @save_aliases
180 Scenario: Too long input for alias # features/aliases.feature:180
181 When I click the header edit button # features/step_definitions/header_steps.rb:10
182 And I enter "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong" as new aliases # features/step_definitions/aliases_steps.rb:24
183 And I click the header save button # features/step_definitions/header_steps.rb:18
184 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
185
186 @bugfix @modify_entity @save_aliases
187 Scenario: Zombie alias bugfix # features/aliases.feature:187
188 When I click the header edit button # features/step_definitions/header_steps.rb:10
189 And I enter "zombie" as new aliases # features/step_definitions/aliases_steps.rb:24
190 And I click the header save button # features/step_definitions/header_steps.rb:18
191 And I reload the page # features/step_definitions/entity_steps.rb:114
192 And I click the header edit button # features/step_definitions/header_steps.rb:10
193 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
194 And I click the header save button # features/step_definitions/header_steps.rb:18
195 And I click the header edit button # features/step_definitions/header_steps.rb:10
196 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
197 And I click the header save button # features/step_definitions/header_steps.rb:18
198 Then There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
199 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
200
201 @bugfix @ui_only
202 Scenario: Bugfix for editbutton appearing when it should not # features/aliases.feature:202
203 When I click the header edit button # features/step_definitions/header_steps.rb:10
204 And I click the header cancel button # features/step_definitions/header_steps.rb:14
205 And I click the header edit button # features/step_definitions/header_steps.rb:10
206 Then Header edit button should not be there # features/step_definitions/header_steps.rb:33
207
208# Wikidata item tests
209#
210# License:: GNU GPL v2+
211#
212# feature the delete of an item
213@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
214Feature: Delete item
215
216 Scenario: Delete item # features/delete_item.feature:10
217 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
218 And I am on an item page # features/step_definitions/entity_steps.rb:17
219 When I click the item delete button # features/step_definitions/delete_item_steps.rb:8
220 Then Page should be deleted # features/step_definitions/delete_item_steps.rb:12
221
222# Wikidata UI tests
223#
224# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
225# License:: GNU GPL v2+
226#
227# feature definition for item description tests
228@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
229Feature: Edit description
230
231 Background: # features/description.feature:11
232 Given I am on an item page # features/step_definitions/entity_steps.rb:17
233 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
234 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
235
236 @ui_only
237 Scenario: Modify the description # features/description.feature:17
238 When I click the header edit button # features/step_definitions/header_steps.rb:10
239 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
240 Then Header save button should be there # features/step_definitions/header_steps.rb:45
241 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
242 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
243
244 @ui_only
245 Scenario Outline: Cancel description # features/description.feature:25
246 When I click the header edit button # features/step_definitions/header_steps.rb:10
247 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
248 And I <cancel> # features/step_definitions/header_steps.rb:14
249 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
250 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
251 And Original description should be displayed # features/step_definitions/description_steps.rb:51
252
253 Examples:
254 | cancel |
255 | click the header cancel button |
256 | press the ESC key in the description input field |
257
258 @save_description @modify_entity
259 Scenario Outline: Save description # features/description.feature:39
260 When I click the header edit button # features/step_definitions/header_steps.rb:10
261 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
262 And I <save> # features/step_definitions/header_steps.rb:18
263 Then "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
264
265 Examples:
266 | save |
267 | click the header save button |
268 | press the RETURN key in the description input field |
269
270 @save_description @modify_entity
271 Scenario Outline: Save description # features/description.feature:51
272 When I click the header edit button # features/step_definitions/header_steps.rb:10
273 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
274 And I <save> # features/step_definitions/header_steps.rb:18
275 And I reload the page # features/step_definitions/entity_steps.rb:114
276 Then "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
277
278 Examples:
279 | save |
280 | click the header save button |
281 | press the RETURN key in the description input field |
282
283 @save_description @modify_entity
284 Scenario Outline: Description with special input # features/description.feature:64
285 When I click the header edit button # features/step_definitions/header_steps.rb:10
286 And I enter <description> as description # features/step_definitions/description_steps.rb:20
287 And I click the header save button # features/step_definitions/header_steps.rb:18
288 Then <expected_description> should be displayed as description # features/step_definitions/description_steps.rb:59
289
290 Examples:
291 | description | expected_description |
292 | "0" | "0" |
293 | " norm a lize me " | "norm a lize me" |
294 | "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
295 | "{{Template:blabla}}" | "{{Template:blabla}}" |
296
297 @save_description
298 Scenario: Description with a too long value # features/description.feature:78
299 When I click the header edit button # features/step_definitions/header_steps.rb:10
300 And I enter a long string as description # features/step_definitions/description_steps.rb:27
301 And I click the header save button # features/step_definitions/header_steps.rb:18
302 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
303
304 expected #<TrueClass:20> => true
305 got #<FalseClass:0> => false
306
307 Compared using equal?, which compares object identity,
308 but expected and actual are not the same object. Use
309 `expect(actual).to eq(expected)` if you don't care about
310 object identity in this example.
311
312 (RSpec::Expectations::ExpectationNotMetError)
313 features/description.feature:82:in `Then An error message should be displayed'
314
315# Wikidata item tests
316#
317# License:: GNU GPL v2+
318#
319# feature the functionality of the edit tab function
320@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
321Feature: Edit tab
322
323 Scenario: Edit tab # features/edit_tab.feature:10
324 Given I am on an item page # features/step_definitions/entity_steps.rb:17
325 Then the edit-tab button should not be visible # features/step_definitions/edit_tab_steps.rb:8
326
327# Wikidata UI tests
328#
329# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
330# License:: GNU GPL v2+
331#
332# feature definition for item description tests
333@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
334Feature: Empty label and description behaviour
335
336 Background: # features/empty_label_and_description.feature:11
337 Given I am on an item page with empty label and description # features/step_definitions/entity_steps.rb:95
338 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
339 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
340
341 @ui_only
342 Scenario: Description UI is shown correctly when description is empty # features/empty_label_and_description.feature:17
343 Then Description input element should not be there # features/step_definitions/description_steps.rb:35
344 And Header edit button should be there # features/step_definitions/header_steps.rb:29
345 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
346 And Header save button should not be there # features/step_definitions/header_steps.rb:49
347
348 @ui_only
349 Scenario: Description UI is shown correctly when description is empty # features/empty_label_and_description.feature:24
350 When I click the header edit button # features/step_definitions/header_steps.rb:10
351 Then Description input element should be there # features/step_definitions/description_steps.rb:31
352 And Description input element should be empty # features/step_definitions/description_steps.rb:43
353 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
354 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
355 And Header save button should not be there # features/step_definitions/header_steps.rb:49
356
357 @ui_only
358 Scenario: Description UI behaves correctly when description is empty # features/empty_label_and_description.feature:33
359 When I click the header edit button # features/step_definitions/header_steps.rb:10
360 And I enter "NEW DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
361 Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
362 And Header save button should be there # features/step_definitions/header_steps.rb:45
363
364 @ui_only @smoke
365 Scenario: Description UI behaves correctly when description is empty # features/empty_label_and_description.feature:40
366 When I click the header edit button # features/step_definitions/header_steps.rb:10
367 And I enter "NEW DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
368 And I click the header cancel button # features/step_definitions/header_steps.rb:14
369 Then Header cancel button should not be there # features/step_definitions/header_steps.rb:41
370 And Header edit button should be there # features/step_definitions/header_steps.rb:29
371 And Header save button should not be there # features/step_definitions/header_steps.rb:49
372 And Description input element should not be there # features/step_definitions/description_steps.rb:35
373
374 @ui_only
375 Scenario: Label UI is shown correctly when label is empty # features/empty_label_and_description.feature:50
376 Then Label input element should not be there # features/step_definitions/label_steps.rb:40
377 And Header edit button should be there # features/step_definitions/header_steps.rb:29
378 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
379 And Header save button should not be there # features/step_definitions/header_steps.rb:49
380
381 @ui_only
382 Scenario: Label UI is shown correctly when label is empty # features/empty_label_and_description.feature:57
383 When I click the header edit button # features/step_definitions/header_steps.rb:10
384 Then Label input element should be there # features/step_definitions/label_steps.rb:36
385 And Label input element should be empty # features/step_definitions/label_steps.rb:48
386 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
387 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
388 And Header save button should not be there # features/step_definitions/header_steps.rb:49
389
390 @ui_only
391 Scenario: Label UI behaves correctly when label is empty # features/empty_label_and_description.feature:66
392 When I click the header edit button # features/step_definitions/header_steps.rb:10
393 And I enter "NEW LABEL" as label # features/step_definitions/label_steps.rb:20
394 Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
395 And Header save button should be there # features/step_definitions/header_steps.rb:45
396
397 @ui_only
398 Scenario: Label UI behaves correctly when label is empty # features/empty_label_and_description.feature:73
399 When I click the header edit button # features/step_definitions/header_steps.rb:10
400 And I enter "NEW LABEL" as label # features/step_definitions/label_steps.rb:20
401 And I click the header cancel button # features/step_definitions/header_steps.rb:14
402 Then Header cancel button should not be there # features/step_definitions/header_steps.rb:41
403 And Header edit button should be there # features/step_definitions/header_steps.rb:29
404 And Header save button should not be there # features/step_definitions/header_steps.rb:49
405 And Label input element should not be there # features/step_definitions/label_steps.rb:40
406
407# Wikidata UI tests
408#
409# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
410# License:: GNU GPL v2+
411#
412# feature definition for item header tests
413@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
414Feature: Use header
415
416 Background: # features/header.feature:11
417 Given I am on an item page # features/step_definitions/entity_steps.rb:17
418 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
419 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
420
421 @ui_only
422 Scenario: Header UI has all required elements # features/header.feature:17
423 Then Original label should be displayed # features/step_definitions/label_steps.rb:56
424 And Original description should be displayed # features/step_definitions/description_steps.rb:51
425 And Header edit button should be there # features/step_definitions/header_steps.rb:29
426 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
427 And Header save button should not be there # features/step_definitions/header_steps.rb:49
428
429 @ui_only
430 Scenario: Click edit button # features/header.feature:25
431 When I click the header edit button # features/step_definitions/header_steps.rb:10
432 Then Header edit button should not be there # features/step_definitions/header_steps.rb:33
433 And Header save button should not be there # features/step_definitions/header_steps.rb:49
434 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
435 And Label input element should be there # features/step_definitions/label_steps.rb:36
436 And Label input element should contain original label # features/step_definitions/label_steps.rb:44
437 And Description input element should be there # features/step_definitions/description_steps.rb:31
438 And Description input element should contain original description # features/step_definitions/description_steps.rb:39
439 And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
440
441 @ui_only
442 Scenario: Modify label, description and aliases # features/header.feature:37
443 When I click the header edit button # features/step_definitions/header_steps.rb:10
444 And I enter random string as label # features/step_definitions/label_steps.rb:27
445 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
446 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
447 Then Header save button should be there # features/step_definitions/header_steps.rb:45
448 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
449 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
450 And Modified alias input field should be there # features/step_definitions/aliases_steps.rb:44
451 And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
452
453 @ui_only
454 Scenario Outline: Cancel label, description and aliases # features/header.feature:49
455 When I click the header edit button # features/step_definitions/header_steps.rb:10
456 And I enter random string as label # features/step_definitions/label_steps.rb:27
457 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
458 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
459 And I <cancel> # features/step_definitions/header_steps.rb:14
460 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
461 And Header save button should not be there # features/step_definitions/header_steps.rb:49
462 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
463 And Original description should be displayed # features/step_definitions/description_steps.rb:51
464 And Original label should be displayed # features/step_definitions/label_steps.rb:56
465 And Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
466
467 Examples:
468 | cancel |
469 | click the header cancel button |
470 | press the ESC key in the label input field |
471
472 @modify_entity @save_description @save_aliases @save_label
473 Scenario Outline: Save label, description and aliases # features/header.feature:69
474 When I click the header edit button # features/step_definitions/header_steps.rb:10
475 And I enter random string as label # features/step_definitions/label_steps.rb:27
476 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
477 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
478 And I <save> # features/step_definitions/header_steps.rb:18
479 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
480 And Header save button should not be there # features/step_definitions/header_steps.rb:49
481 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
482 And random string should be displayed as label # features/step_definitions/label_steps.rb:86
483 And "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
484 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
485 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
486
487 Examples:
488 | save |
489 | click the header save button |
490 | press the RETURN key in the description input field |
491
492 @bugfix @modify_entity
493 Scenario: EntityTermView bugfix # features/header.feature:89
494 When I click the header edit button # features/step_definitions/header_steps.rb:10
495 And I enter random string as label # features/step_definitions/label_steps.rb:27
496 And I click the header save button # features/step_definitions/header_steps.rb:18
497 And I reload the page # features/step_definitions/entity_steps.rb:114
498 Then random string should be displayed as label # features/step_definitions/label_steps.rb:86
499 And random string should be displayed as English label in the EntityTermView box # features/step_definitions/label_steps.rb:74
500
501# Wikidata UI tests
502#
503# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
504# License:: GNU GPL v2+
505#
506# feature definition for item label tests
507@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
508Feature: Edit label
509
510 Background: # features/label.feature:11
511 Given I am on an item page # features/step_definitions/entity_steps.rb:17
512 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
513 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
514
515 @ui_only
516 Scenario: Modify the label # features/label.feature:17
517 When I click the header edit button # features/step_definitions/header_steps.rb:10
518 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
519 Then Header save button should be there # features/step_definitions/header_steps.rb:45
520 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
521 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
522
523 @ui_only
524 Scenario Outline: Cancel label # features/label.feature:25
525 When I click the header edit button # features/step_definitions/header_steps.rb:10
526 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
527 And I <cancel> # features/step_definitions/header_steps.rb:14
528 Then Original label should be displayed # features/step_definitions/label_steps.rb:56
529 And Header edit button should be there # features/step_definitions/header_steps.rb:29
530 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
531
532 Examples:
533 | cancel |
534 | click the header cancel button |
535 | press the ESC key in the label input field |
536
537 @modify_entity @save_label @smoke
538 Scenario Outline: Save label # features/label.feature:39
539 When I click the header edit button # features/step_definitions/header_steps.rb:10
540 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
541 And I <save> # features/step_definitions/header_steps.rb:18
542 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
543 And "MODIFIED LABEL" should be displayed as label # features/step_definitions/label_steps.rb:78
544
545 Examples:
546 | save |
547 | click the header save button |
548 | press the RETURN key in the label input field |
549
550 @modify_entity @save_label
551 Scenario Outline: Save label and reload # features/label.feature:52
552 When I click the header edit button # features/step_definitions/header_steps.rb:10
553 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
554 And I <save> # features/step_definitions/header_steps.rb:18
555 And I reload the page # features/step_definitions/entity_steps.rb:114
556 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
557 And "MODIFIED LABEL" should be displayed as label # features/step_definitions/label_steps.rb:78
558
559 Examples:
560 | save |
561 | click the header save button |
562 | press the RETURN key in the label input field |
563
564 @modify_entity @save_label
565 Scenario Outline: Label with special input # features/label.feature:66
566 When I click the header edit button # features/step_definitions/header_steps.rb:10
567 And I enter <label> as label # features/step_definitions/label_steps.rb:20
568 And I click the header save button # features/step_definitions/header_steps.rb:18
569 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
570 And <expected_label> should be displayed as label # features/step_definitions/label_steps.rb:78
571
572 Examples:
573 | label | expected_label |
574 | "0" | "0" |
575 | " normalize me " | "normalize me" |
576 | "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
577 | "{{Template:blabla}}" | "{{Template:blabla}}" |
578
579 @save_label
580 Scenario: Label with a too long value # features/label.feature:81
581 When I click the header edit button # features/step_definitions/header_steps.rb:10
582 And I enter a long string as label # features/step_definitions/label_steps.rb:32
583 And I click the header save button # features/step_definitions/header_steps.rb:18
584 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
585
586# Wikidata item tests
587#
588# License:: GNU GPL v2+
589#
590# feature the functionality of a non existing item page
591@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
592Feature: Non existing item
593
594 Scenario: Edit tab # features/non_existing_item.feature:10
595 Given I am on an non existing item page # features/step_definitions/non_existing_item_steps.rb:8
596 Then check if this page behaves correctly # features/step_definitions/non_existing_item_steps.rb:12
597
598# Wikidata UI tests
599#
600# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
601# License:: GNU GPL v2+
602#
603# feature definition for references
604@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
605Feature: Adding references to statements
606
607 Background: # features/reference.feature:11
608 Given I have an item to test # features/step_definitions/entity_steps.rb:22
609 And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
610 | stringprop | string |
611 And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
612 | stringprop | reference test |
613 And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
614 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
615 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
616
617 @ui_only
618 Scenario: Reference UI has all required elements # features/reference.feature:22
619 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
620 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
621 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
622 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
623 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
624
625 @ui_only
626 Scenario: References toggler # features/reference.feature:30
627 When I click the toggle references link of statement 1 # features/step_definitions/reference_steps.rb:31
628 Then Reference add button should not be there # features/step_definitions/reference_steps.rb:42
629 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
630 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
631 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
632
633 @ui_only
634 Scenario: Click the Add Reference button # features/reference.feature:38
635 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
636 And I click the reference add button # features/step_definitions/reference_steps.rb:9
637 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
638 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
639 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
640 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
641 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
642 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
643 And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
644 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
645
646 @ui_only
647 Scenario Outline: Cancel reference # features/reference.feature:51
648 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
649 And I click the reference add button # features/step_definitions/reference_steps.rb:9
650 And I <cancel> # features/step_definitions/statement_steps.rb:27
651 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
652 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
653 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
654 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
655 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
656 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
657 And Reference remove button should not be there # features/step_definitions/reference_steps.rb:55
658 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
659 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
660
661 Examples:
662 | cancel |
663 | click the statement cancel button |
664 | press the ESC key in the snak entity selector input field |
665
666 @ui_only
667 Scenario: Select a property # features/reference.feature:71
668 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
669 And I click the reference add button # features/step_definitions/reference_steps.rb:9
670 And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
671 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
672 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
673 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
674 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
675 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
676 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
677 And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
678 And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
679
680 @ui_only
681 Scenario: Select a property and enter a value # features/reference.feature:85
682 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
683 And I click the reference add button # features/step_definitions/reference_steps.rb:9
684 And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
685 And I enter something as string snak value # features/step_definitions/statement_steps.rb:94
686 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
687 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
688 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
689 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
690 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
691 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
692 And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
693 And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
694
695 @modify_entity @repo_login
696 Scenario Outline: Add reference with one snak # features/reference.feature:100
697 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
698 And I click the reference add button # features/step_definitions/reference_steps.rb:9
699 And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
700 And I enter test as string snak value # features/step_definitions/statement_steps.rb:94
701 And I <save> # features/step_definitions/statement_steps.rb:31
702 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
703 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
704 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
705 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
706 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
707 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
708 And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
709 And Property of snak 1 of reference 1 should be label of stringprop # features/step_definitions/reference_steps.rb:98
710 And Value of snak 1 of reference 1 should be test # features/step_definitions/reference_steps.rb:110
711 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
712
713 Examples:
714 | save |
715 | click the statement save button |
716 | press the RETURN key in the snak value input field |
717
718 @modify_entity @repo_login
719 Scenario: Add reference with multiple snaks # features/reference.feature:122
720 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
721 | stringprop1 | string |
722 | stringprop2 | string |
723 | stringprop3 | string |
724 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
725 | stringprop1 | test1 |
726 | stringprop2 | test2 |
727 | stringprop3 | test3 |
728 And I reload the page # features/step_definitions/entity_steps.rb:114
729 And I click the toggle references link of statement 1 # features/step_definitions/reference_steps.rb:31
730 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
731 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
732 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
733 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
734 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
735 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
736 And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
737 And Property of snak 2 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
738 And Property of snak 3 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
739 And Property of snak 1 of reference 1 should be label of stringprop1 # features/step_definitions/reference_steps.rb:98
740 And Property of snak 2 of reference 1 should be label of stringprop2 # features/step_definitions/reference_steps.rb:98
741 And Property of snak 3 of reference 1 should be label of stringprop3 # features/step_definitions/reference_steps.rb:98
742 And Value of snak 1 of reference 1 should be test1 # features/step_definitions/reference_steps.rb:110
743 And Value of snak 2 of reference 1 should be test2 # features/step_definitions/reference_steps.rb:110
744 And Value of snak 3 of reference 1 should be test3 # features/step_definitions/reference_steps.rb:110
745 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
746
747 @modify_entity @repo_login
748 Scenario: Check UI elements when editing reference # features/reference.feature:151
749 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
750 | stringprop | string |
751 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
752 | stringprop | test |
753 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
754 Then Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
755 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
756 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
757 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
758 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
759 And Reference add button should be there # features/step_definitions/reference_steps.rb:38
760 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
761 And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
762
763 @modify_entity @repo_login
764 Scenario: Edit reference with one snak # features/reference.feature:167
765 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
766 | stringprop | string |
767 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
768 | stringprop | test |
769 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
770 And I enter modified as string snak value # features/step_definitions/statement_steps.rb:94
771 And I click the statement save button # features/step_definitions/statement_steps.rb:31
772 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
773 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
774 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
775 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
776 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
777 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
778 And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
779 And Property of snak 1 of reference 1 should be label of stringprop # features/step_definitions/reference_steps.rb:98
780 And Value of snak 1 of reference 1 should be modified # features/step_definitions/reference_steps.rb:110
781 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
782
783 @modify_entity @repo_login
784 Scenario: Remove complete reference # features/reference.feature:187
785 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
786 | stringprop | string |
787 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
788 | stringprop | test |
789 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
790 And I click the reference remove button # features/step_definitions/reference_steps.rb:13
791 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
792 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
793 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
794 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
795 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
796 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
797 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
798 And Property of snak 1 of reference 1 should not be there # features/step_definitions/reference_steps.rb:102
799 And Value of snak 1 of reference 1 should not be there # features/step_definitions/reference_steps.rb:114
800
801 @modify_entity @repo_login
802 Scenario: Remove reference snak # features/reference.feature:205
803 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
804 | stringprop1 | string |
805 | stringprop2 | string |
806 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
807 | stringprop1 | test1 |
808 | stringprop2 | test2 |
809 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
810 And I remove reference snak 1 # features/step_definitions/reference_steps.rb:21
811 And I click the statement save button # features/step_definitions/statement_steps.rb:31
812 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
813 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
814 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
815 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
816 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
817 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
818 And Property of snak 1 of reference 1 should be label of stringprop2 # features/step_definitions/reference_steps.rb:98
819 And Value of snak 1 of reference 1 should be test2 # features/step_definitions/reference_steps.rb:110
820 And Property of snak 2 of reference 1 should not be there # features/step_definitions/reference_steps.rb:102
821 And Value of snak 2 of reference 1 should not be there # features/step_definitions/reference_steps.rb:114
822
823# Wikidata UI tests
824#
825# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
826# License:: GNU GPL v2+
827#
828# feature definition for item sitelinks tests
829@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
830Feature: Edit sitelinks
831
832 Background: # features/sitelinks.feature:11
833 Given I am on an item page # features/step_definitions/entity_steps.rb:17
834 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
835 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
836
837 @ui_only
838 Scenario: Sitelink UI has all required elements # features/sitelinks.feature:17
839 Then wikipedia sitelink section should be there # features/step_definitions/sitelinks_steps.rb:67
840 And Sitelink heading should be there # features/step_definitions/sitelinks_steps.rb:71
841 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
842 And Sitelink counter should be there # features/step_definitions/sitelinks_steps.rb:126
843 And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
844
845 @ui_only
846 Scenario: Click edit button # features/sitelinks.feature:25
847 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
848 Then Sitelink edit button should not be there # features/step_definitions/sitelinks_steps.rb:96
849 And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
850 And Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
851 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
852 And Sitelink help field should be there # features/step_definitions/sitelinks_steps.rb:138
853 And Sitelink siteid input field should be there # features/step_definitions/sitelinks_steps.rb:142
854 And Sitelink pagename input field should not be there # features/step_definitions/sitelinks_steps.rb:154
855
856 @ui_only
857 Scenario Outline: Type site id # features/sitelinks.feature:36
858 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
859 And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
860 Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
861 And Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
862 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
863 And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
864 And Sitelink siteid dropdown should be there # features/step_definitions/sitelinks_steps.rb:165
865 And Sitelink siteid first suggestion should include <expected_element> # features/step_definitions/sitelinks_steps.rb:177
866
867 Examples:
868 | siteid | expected_element |
869 | en | English |
870 | he | עברית |
871 timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
872 features/sitelinks.feature:39:in `Then Sitelink pagename input field should be there'
873
874 @ui_only
875 Scenario Outline: Type site id and page name # features/sitelinks.feature:52
876 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
877 And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
878 And I type <pagename> into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
879 Then Sitelink save button should be there # features/step_definitions/sitelinks_steps.rb:105
880 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
881 And Sitelink remove button should be there # features/step_definitions/sitelinks_steps.rb:79
882 And Sitelink pagename dropdown should be there # features/step_definitions/sitelinks_steps.rb:181
883 And Sitelink pagename first suggestion should be <expected_element> # features/step_definitions/sitelinks_steps.rb:189
884
885 Examples:
886 | siteid | pagename | expected_element |
887 | en | Main Page | Main Page |
888 | he | עמוד ראשי | עמוד ראשי |
889 timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
890 ./features/support/modules/sitelink_module.rb:98:in `/^I type (.+) into the (\d+). page input field$/'
891 features/sitelinks.feature:55:in `And I type <pagename> into the 1. page input field'
892
893 @ui_only
894 Scenario: Type site id and page name and change site id to something senseless # features/sitelinks.feature:68
895 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
896 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
897 And I type Main Page into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
898 And I type nonexistingwiki into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
899 Then Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
900 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
901 And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
902 And Sitelink pagename input field should not be there # features/step_definitions/sitelinks_steps.rb:154
903
904 @ui_only
905 Scenario Outline: Cancel sitelink during siteid selection # features/sitelinks.feature:79
906 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
907 And I <cancel> # features/step_definitions/sitelinks_steps.rb:17
908 Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
909 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
910 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
911 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
912 And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
913 And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
914
915 Examples:
916 | cancel |
917 | click the sitelink cancel button |
918 | press the ESC key in the siteid input field |
919
920 @ui_only
921 Scenario Outline: Cancel sitelink during pagename selection # features/sitelinks.feature:95
922 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
923 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
924 And I <cancel> # features/step_definitions/sitelinks_steps.rb:17
925 Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
926 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
927 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
928 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
929 And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
930 And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
931
932 Examples:
933 | cancel |
934 | click the sitelink cancel button |
935 | press the ESC key in the pagename input field |
936
937 @modify_entity @save_sitelink @smoke
938 Scenario Outline: Save sitelink # features/sitelinks.feature:112
939 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
940 | enwiki | Asia |
941 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
942 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
943 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
944 And I <save> # features/step_definitions/sitelinks_steps.rb:21
945 Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
946
947 Examples:
948 | save |
949 | click the sitelink save button |
950 | press the RETURN key in the pagename input field |
951
952 @modify_entity @save_sitelink
953 Scenario Outline: Save sitelink and reload # features/sitelinks.feature:127
954 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
955 | enwiki | Asia |
956 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
957 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
958 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
959 And I <save> # features/step_definitions/sitelinks_steps.rb:21
960 And I reload the page # features/step_definitions/entity_steps.rb:114
961 Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
962
963 Examples:
964 | save |
965 | click the sitelink save button |
966 expected: == 1
967 got: 0 (RSpec::Expectations::ExpectationNotMetError)
968 features/sitelinks.feature:135:in `Then There should be 1 sitelinks in the list'
969 | press the RETURN key in the pagename input field |
970 expected: == 1
971 got: 0 (RSpec::Expectations::ExpectationNotMetError)
972 features/sitelinks.feature:135:in `Then There should be 1 sitelinks in the list'
973
974 @modify_entity @save_sitelink
975 Scenario: Edit sitelink # features/sitelinks.feature:143
976 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
977 | enwiki | Asia |
978 | enwiki | Europe |
979 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
980 | en | Asia |
981 And I reload the page # features/step_definitions/entity_steps.rb:114
982 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
983 And I type Europe into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
984 timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
985 ./features/support/modules/sitelink_module.rb:98:in `/^I type (.+) into the (\d+). page input field$/'
986 features/sitelinks.feature:151:in `And I type Europe into the 1. page input field'
987 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
988 Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
989 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
990 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
991 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
992
993 @modify_entity @save_sitelink
994 Scenario Outline: Add sitelink # features/sitelinks.feature:159
995 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
996 | enwiki | Asia |
997 | sqwiki | Wikipedia |
998 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
999 And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1000 And I type <pagename> into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1001 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1002 Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1003 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1004 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1005 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
1006 And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1007 And There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1008 And Sitelink language code should include <siteid> # features/step_definitions/sitelinks_steps.rb:197
1009 And Sitelink link text should be <normalized_pagename> # features/step_definitions/sitelinks_steps.rb:201
1010 And Sitelink link should lead to article <normalized_pagename> # features/step_definitions/sitelinks_steps.rb:205
1011
1012 Examples:
1013 | siteid | pagename | normalized_pagename |
1014 | en | Asia | Asia |
1015 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1016 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1017 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1018 features/sitelinks.feature:160:in `Given The following sitelinks do not exist:'
1019 | sq | wikipedia | Wikipedia |
1020 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1021 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1022 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1023 features/sitelinks.feature:160:in `Given The following sitelinks do not exist:'
1024
1025 @modify_entity @save_sitelink
1026 Scenario: Add multiple sitelinks # features/sitelinks.feature:183
1027 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1028 | enwiki | Europe |
1029 | dewiki | Test |
1030 | sqwiki | Wikipedia |
1031 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1032 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1033 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1034 features/sitelinks.feature:184:in `Given The following sitelinks do not exist:'
1035 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1036 | en | Europe |
1037 | de | Test |
1038 | sq | Wikipedia |
1039 Then There should be 3 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1040
1041 @modify_entity @save_sitelink
1042 Scenario: Remove multiple sitelinks # features/sitelinks.feature:195
1043 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1044 | enwiki | Europe |
1045 | dewiki | Test |
1046 | sqwiki | Wikipedia |
1047 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1048 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1049 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1050 features/sitelinks.feature:196:in `Given The following sitelinks do not exist:'
1051 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1052 | en | Europe |
1053 | de | Test |
1054 | sq | Wikipedia |
1055 And I remove all sitelinks # features/step_definitions/sitelinks_steps.rb:51
1056 And I reload the page # features/step_definitions/entity_steps.rb:114
1057 Then There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1058 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1059
1060 @modify_entity @save_sitelink
1061 Scenario: List of sitelinks is complete # features/sitelinks.feature:210
1062 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1063 | enwiki | Europe |
1064 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1065 | en | Europe |
1066 And I mock that the list of sitelinks is complete # features/step_definitions/sitelinks_steps.rb:63
1067 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1068 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1069 features/sitelinks.feature:216:in `And I click the sitelink edit button'
1070 Then Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1071
1072 @save_sitelink
1073 Scenario: Add sitelink to non existent page # features/sitelinks.feature:220
1074 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1075 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1076 And I type xyz_nonexistentarticle_xyz into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1077 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1078 Then An error message should be displayed for sitelink group wikipedia # features/step_definitions/sitelinks_steps.rb:212
1079
1080 @save_sitelink
1081 Scenario: Add new sitelink to already referenced site # features/sitelinks.feature:228
1082 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1083 | enwiki | Asia |
1084 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1085 | en | Asia |
1086 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1087 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1088 features/sitelinks.feature:233:in `And I click the sitelink edit button'
1089 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
1090 And I type en into the 2. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1091 Then Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1092 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1093
1094# Wikidata UI tests
1095#
1096# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1097# License:: GNU GPL v2+
1098#
1099# feature definition for item sitelinks tests
1100@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1101Feature: Add badges to sitelinks
1102
1103 Background: # features/sitelinks_badge.feature:11
1104 Given I have at least 2 badges to test # features/step_definitions/badges_steps.rb:1
1105 expected: >= 2
1106 got: 0 (RSpec::Expectations::ExpectationNotMetError)
1107 features/sitelinks_badge.feature:12:in `Given I have at least 2 badges to test'
1108 And I am on an item page # features/step_definitions/entity_steps.rb:17
1109 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1110 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1111
1112 @ui_only
1113 Scenario: Sitelink badge UI is there # features/sitelinks_badge.feature:18
1114 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1115 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1116 Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
1117 And Sitelink badge selector should be there # features/step_definitions/badges_steps.rb:18
1118 And Sitelink empty badge selector should be there # features/step_definitions/badges_steps.rb:32
1119
1120 @ui_only
1121 Scenario: Sitelink badge UI shows all available badges # features/sitelinks_badge.feature:26
1122 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1123 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1124 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1125 Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
1126 And Sitelink badge selector menu should be there # features/step_definitions/badges_steps.rb:22
1127 And Sitelink badge selector menu should show available badges # features/step_definitions/badges_steps.rb:26
1128
1129 @ui_only
1130 Scenario: Choose a badge # features/sitelinks_badge.feature:35
1131 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1132 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1133 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1134 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1135 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1136 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1137
1138 @ui_only
1139 Scenario: Choose multiple badges # features/sitelinks_badge.feature:44
1140 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1141 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1142 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1143 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1144 And I click the 2. badge selector id item # features/step_definitions/badges_steps.rb:10
1145 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1146 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1147 And The 2. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1148
1149 @modify_entity @save_sitelink
1150 Scenario: Save a badge # features/sitelinks_badge.feature:55
1151 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1152 | enwiki | Asia |
1153 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1154 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1155 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1156 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1157 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1158 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1159 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1160 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1161 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1162 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1163 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1164
1165 @modify_entity @save_sitelink
1166 Scenario: Save a badge and reload # features/sitelinks_badge.feature:71
1167 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1168 | enwiki | Asia |
1169 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1170 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1171 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1172 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1173 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1174 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1175 And I reload the page # features/step_definitions/entity_steps.rb:114
1176 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1177 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1178 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1179 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1180 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1181
1182# Wikidata UI tests
1183#
1184# Author:: Thiemo Mättig
1185# License:: GNU GPL v2+
1186#
1187# feature definition for the Special:SetLabel page tests
1188@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @special_pages @wikidata.beta.wmflabs.org
1189Feature: Special:SetLabel page
1190
1191 @ui_only
1192 Scenario: Special:SetLabel page has all required elements # features/special_set_label.feature:12
1193 Given I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1194 Then ID input field should be there # features/step_definitions/special_modify_entity_steps.rb:30
1195 And Language input field should be there # features/step_definitions/special_modify_term_steps.rb:10
1196 And Label input field should be there # features/step_definitions/special_set_label_steps.rb:21
1197 And Set label button should be there # features/step_definitions/special_set_label_steps.rb:25
1198
1199 @ui_only
1200 Scenario: Logged in user does not get warning # features/special_set_label.feature:20
1201 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1202 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1203 Then Anonymous edit warning should not be there # features/step_definitions/special_modify_entity_steps.rb:22
1204
1205 @ui_only
1206 Scenario: Anonymous user gets warning # features/special_set_label.feature:26
1207 Given I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1208 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1209 Then Anonymous edit warning should be there # features/step_definitions/special_modify_entity_steps.rb:18
1210
1211 Scenario: Add a label # features/special_set_label.feature:31
1212 Given I have the following empty items: # features/step_definitions/entity_steps.rb:83
1213 | item1 |
1214 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1215 And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
1216 And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1217 And I enter Something into the label input field # features/step_definitions/special_set_label_steps.rb:13
1218 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1219 And I am on the page of item item1 # features/step_definitions/entity_steps.rb:49
1220 Then Something should be displayed as label having the ID of item1 # features/step_definitions/label_steps.rb:90
1221
1222 @smoke
1223 Scenario: Edit an existing label # features/special_set_label.feature:43
1224 Given I have the following items: # features/step_definitions/entity_steps.rb:79
1225 | item1 |
1226 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1227 And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
1228 And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1229 And I enter Something different into the label input field # features/step_definitions/special_set_label_steps.rb:13
1230 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1231 And I am on the page of item item1 # features/step_definitions/entity_steps.rb:49
1232 Then Something different should be displayed as label having the ID of item1 # features/step_definitions/label_steps.rb:90
1233
1234 Scenario: Edit using an invalid language fails # features/special_set_label.feature:54
1235 Given I have the following items: # features/step_definitions/entity_steps.rb:79
1236 | item1 |
1237 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1238 And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
1239 And I enter Something invalid into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1240 And I enter Something new into the label input field # features/step_definitions/special_set_label_steps.rb:13
1241 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1242 Then An error message should be displayed on the special page # features/step_definitions/special_modify_entity_steps.rb:26
1243
1244 Scenario: Edit using an invalid ID fails # features/special_set_label.feature:64
1245 When I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1246 And I enter something invalid in the ID input field # features/step_definitions/special_modify_entity_steps.rb:10
1247 And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1248 And I enter Something new into the label input field # features/step_definitions/special_set_label_steps.rb:13
1249 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1250 Then An error message should be displayed on the special page # features/step_definitions/special_modify_entity_steps.rb:26
1251
1252# Wikidata UI tests
1253#
1254# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1255# License:: GNU GPL v2+
1256#
1257# feature definition for statements tests
1258@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1259Feature: Creating statements
1260
1261 Background: # features/statement.feature:11
1262 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1263 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1264 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1265
1266 @ui_only
1267 Scenario: Statement UI has all required elements # features/statement.feature:17
1268 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1269 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1270 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1271 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1272 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1273 And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
1274 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1275
1276 @ui_only
1277 Scenario: Click the add button # features/statement.feature:27
1278 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1279 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1280 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1281 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1282 And Statement help field should be there # features/step_definitions/statement_steps.rb:165
1283 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1284 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1285 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1286 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1287
1288 @ui_only
1289 Scenario Outline: Cancel statement # features/statement.feature:39
1290 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1291 And I <cancel> # features/step_definitions/statement_steps.rb:27
1292 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1293 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1294 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1295 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1296 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1297 And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
1298 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1299
1300 Examples:
1301 | cancel |
1302 | click the statement cancel button |
1303 | press the ESC key in the claim entity selector input field |
1304 timed out after 10 seconds, Element still visible after 10 seconds (Watir::Wait::TimeoutError)
1305 features/statement.feature:43:in `And Statement cancel button should not be there'
1306
1307 @repo_login @ui_only
1308 Scenario: Select a property # features/statement.feature:56
1309 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1310 | stringprop | string |
1311 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1312 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1313 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1314 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1315 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1316 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1317 And Claim value input element should be there # features/step_definitions/statement_steps.rb:208
1318 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1319 And Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
1320
1321 @repo_login @smoke @ui_only
1322 Scenario: Select a property and enter a statement value # features/statement.feature:70
1323 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1324 | stringprop | string |
1325 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1326 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1327 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1328 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1329 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1330 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1331 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1332 And Claim value input element should be there # features/step_definitions/statement_steps.rb:208
1333 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1334 And Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
1335
1336 @repo_login @ui_only
1337 Scenario Outline: Cancel statement after selecting a property # features/statement.feature:85
1338 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1339 | stringprop | string |
1340 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1341 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1342 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1343 And I <cancel> # features/step_definitions/statement_steps.rb:27
1344 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1345 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1346 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1347 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1348 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1349 And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
1350 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1351
1352 Examples:
1353 | cancel |
1354 | click the statement cancel button |
1355 | press the ESC key in the claim value input field |
1356
1357 @repo_login @ui_only
1358 Scenario: Select a property, enter a statement value and clear the property # features/statement.feature:106
1359 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1360 | stringprop | string |
1361 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1362 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1363 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1364 And I enter invalid in the claim property input field # features/step_definitions/statement_steps.rb:53
1365 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1366 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1367 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1368 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1369 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1370 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1371 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1372
1373# Wikidata UI tests
1374#
1375# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1376# License:: GNU GPL v2+
1377#
1378# feature definition for geo type statements tests
1379@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1380Feature: Using geo properties in statements
1381
1382 Background: # features/statements_geo.feature:11
1383 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1384 | geoprop | globe-coordinate |
1385 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1386
1387 @ui_only
1388 Scenario: Geo UI should work properly # features/statements_geo.feature:17
1389 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1390 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1391 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1392 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1393 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1394 And I enter 1,1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1395 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
1396 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1397 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1398 And InputExtender preview should be there # features/step_definitions/statement_steps.rb:280
1399 And Geo precision chooser should be there # features/step_definitions/statement_steps.rb:288
1400
1401 @ui_only
1402 Scenario Outline: Check geo UI for invalid values # features/statements_geo.feature:31
1403 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1404 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1405 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1406 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1407 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1408 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1409 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1410 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1411
1412 Examples:
1413 | value |
1414 | astring |
1415 | 1 11 199 9 |
1416 | 1 |
1417 | 1:1 |
1418
1419 @ui_only
1420 Scenario Outline: Geo parser in the preview and precision detection should work properly # features/statements_geo.feature:49
1421 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1422 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1423 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1424 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1425 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1426 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1427 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
1428 Then <preview> should be displayed in the InputExtender preview # features/step_definitions/statement_steps.rb:260
1429 And <precision> should be the geo precision setting # features/step_definitions/statement_steps.rb:292
1430 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1431 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1432
1433 Examples:
1434 | value | preview | precision |
1435 | 1 1 | 1°N, 1°E | ±1° |
1436 | 1 S 1 W | 1°S, 1°W | ±1° |
1437 | 52°29'53"N, 13°22'51"E | 52°29'53"N, 13°22'51"E | to an arcsecond |
1438 | 52°29'N, 13°22'E | 52°29'N, 13°22'E | to an arcminute |
1439 | 42.1538, 8.5731 | 42°9'13.7"N, 8°34'23.2"E | ±0.0001° |
1440 | 42° 09.231' N 008° 34.386' E | 42°9'13.86"N, 8°34'23.16"E | to 1/100 of an arcsecond |
1441
1442 @repo_login @modify_entity
1443 Scenario: Adding a statement of type geo # features/statements_geo.feature:72
1444 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1445 And I am on an item page # features/step_definitions/entity_steps.rb:17
1446 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1447 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1448 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1449 And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field # features/step_definitions/statement_steps.rb:61
1450 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1451 Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E # features/step_definitions/statement_steps.rb:228
1452 And Statement name of group 1 should be the label of geoprop # features/step_definitions/statement_steps.rb:224
1453 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1454 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1455 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1456
1457 @repo_login @modify_entity
1458 Scenario: Adding a statement of type geo and reload page # features/statements_geo.feature:88
1459 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1460 And I am on an item page # features/step_definitions/entity_steps.rb:17
1461 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1462 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1463 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1464 And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field # features/step_definitions/statement_steps.rb:61
1465 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1466 And I reload the page # features/step_definitions/entity_steps.rb:114
1467 Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E # features/step_definitions/statement_steps.rb:228
1468 And Statement name of group 1 should be the label of geoprop # features/step_definitions/statement_steps.rb:224
1469 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1470 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1471 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1472
1473# Wikidata UI tests
1474#
1475# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1476# License:: GNU GPL v2+
1477#
1478# feature definition for item type statements tests
1479@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1480Feature: Creating statements of type item
1481
1482 Background: # features/statements_item.feature:11
1483 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1484 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1485 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1486
1487 @modify_entity @repo_login
1488 Scenario Outline: Adding a statement of type item # features/statements_item.feature:17
1489 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1490 | itemprop | wikibase-item |
1491 Given I have the following items: # features/step_definitions/entity_steps.rb:79
1492 | item1 |
1493 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1494 And I select the claim property itemprop # features/step_definitions/statement_steps.rb:39
1495 And I enter the label of item <item> as claim value # features/step_definitions/statement_steps.rb:102
1496 And I <save> # features/step_definitions/statement_steps.rb:31
1497 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1498 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1499 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1500 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1501 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1502 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1503 And Statement name of group 1 should be the label of itemprop # features/step_definitions/statement_steps.rb:224
1504 And Statement value of claim 1 in group 1 should be the label of item <item> # features/step_definitions/statement_steps.rb:232
1505
1506 Examples:
1507 | item | save |
1508 | item1 | click the statement save button |
1509
1510 @ui_only @repo_login
1511 Scenario: Select a property, use entity selector # features/statements_item.feature:40
1512 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1513 | itemprop | wikibase-item |
1514 And I have 3 items beginning with "q" # features/step_definitions/entity_steps.rb:34
1515 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1516 And I select the claim property itemprop # features/step_definitions/statement_steps.rb:39
1517 And I enter q in the claim value input field # features/step_definitions/statement_steps.rb:61
1518 And I press the ARROWDOWN key in the claim value input field # features/step_definitions/statement_steps.rb:122
1519 And I press the ARROWDOWN key in the claim value input field # features/step_definitions/statement_steps.rb:122
1520 And I press the RETURN key in the claim value input field # features/step_definitions/statement_steps.rb:130
1521 And I memorize the value of the the claim value input field # features/step_definitions/statement_steps.rb:153
1522 And I press the RETURN key in the claim value input field # features/step_definitions/statement_steps.rb:130
1523 Then Statement value of claim 1 in group 1 should be what I memorized # features/step_definitions/statement_steps.rb:236
1524
1525# Wikidata UI tests
1526#
1527# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1528# License:: GNU GPL v2+
1529#
1530# feature definition for monolingual type statements tests
1531@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1532Feature: Using monolingual properties in statements
1533
1534 Background: # features/statements_monolingual.feature:11
1535 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1536 | monolingprop | monolingualtext |
1537 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1538
1539 @ui_only
1540 Scenario: Monolingual UI should work properly # features/statements_monolingual.feature:17
1541 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1542 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1543 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1544 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1545 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1546 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1547 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1548 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1549 And InputExtender input should be there # features/step_definitions/statement_steps.rb:284
1550
1551 @ui_only
1552 Scenario: Check monolingual for invalid language values # features/statements_monolingual.feature:29
1553 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1554 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1555 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1556 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1557 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1558 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1559 And I enter definitelynotalanguage in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1560 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1561 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1562 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1563
1564 @repo_login @modify_entity
1565 Scenario Outline: Adding a statement of type monolingual # features/statements_monolingual.feature:42
1566 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1567 And I am on an item page # features/step_definitions/entity_steps.rb:17
1568 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1569 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1570 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1571 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1572 And I enter <language> in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1573 And I click the InputExtender dropdown first element # features/step_definitions/statement_steps.rb:89
1574 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1575 Then Statement string value of claim 1 in group 1 should be something (<language>) # features/step_definitions/statement_steps.rb:228
1576 And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
1577 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1578 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1579 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1580
1581 Examples:
1582 | language |
1583 | English |
1584 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1585 features/statements_monolingual.feature:50:in `And I click the InputExtender dropdown first element'
1586 | German |
1587 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1588 features/statements_monolingual.feature:50:in `And I click the InputExtender dropdown first element'
1589
1590 Scenario Outline: Adding a statement of type monolingual and use keyboard to select language # features/statements_monolingual.feature:63
1591 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1592 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1593 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1594 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1595 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1596 And I enter <language> in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1597 And I press the ARROWDOWN key in the InputExtender input field # features/step_definitions/statement_steps.rb:77
1598 And I press the RETURN key in the InputExtender input field # features/step_definitions/statement_steps.rb:81
1599 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1600 Then Statement string value of claim 1 in group 1 should be something (<language>) # features/step_definitions/statement_steps.rb:228
1601 And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
1602 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1603 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1604 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1605
1606 Examples:
1607 | language |
1608 | English |
1609
1610 expected: "something (English)"
1611 got: ""
1612
1613 (compared using ==)
1614 (RSpec::Expectations::ExpectationNotMetError)
1615 features/statements_monolingual.feature:73:in `Then Statement string value of claim 1 in group 1 should be something (<language>)'
1616 | German |
1617
1618 expected: "something (German)"
1619 got: ""
1620
1621 (compared using ==)
1622 (RSpec::Expectations::ExpectationNotMetError)
1623 features/statements_monolingual.feature:73:in `Then Statement string value of claim 1 in group 1 should be something (<language>)'
1624
1625 @repo_login @modify_entity
1626 Scenario: Adding a statement of type monolingual and reload page # features/statements_monolingual.feature:85
1627 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1628 And I am on an item page # features/step_definitions/entity_steps.rb:17
1629 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1630 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1631 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1632 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1633 And I enter English in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1634 And I click the InputExtender dropdown first element # features/step_definitions/statement_steps.rb:89
1635 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1636 features/statements_monolingual.feature:93:in `And I click the InputExtender dropdown first element'
1637 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1638 And I reload the page # features/step_definitions/entity_steps.rb:114
1639 Then Statement string value of claim 1 in group 1 should be something (English) # features/step_definitions/statement_steps.rb:228
1640 And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
1641 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1642 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1643 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1644
1645# Wikidata UI tests
1646#
1647# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1648# License:: GNU GPL v2+
1649#
1650# feature definition for quantity type statements tests
1651@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1652Feature: Using quantity properties in statements
1653
1654 Background: # features/statements_quantity.feature:11
1655 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1656 | quantprop | quantity |
1657 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1658
1659 @ui_only
1660 Scenario: Quantity UI should work properly # features/statements_quantity.feature:17
1661 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1662 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1663 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1664 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1665 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1666 And I enter 1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1667 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1668 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1669 features/statements_quantity.feature:24:in `Then Statement save button should be there'
1670 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1671
1672 @ui_only
1673 Scenario Outline: Check quantity UI for invalid values # features/statements_quantity.feature:28
1674 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1675 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1676 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1677 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1678 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1679 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1680 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1681 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1682
1683 Examples:
1684 | value |
1685 | astring |
1686 | 1:1 |
1687
1688 @repo_login @modify_entity
1689 Scenario: Quantity parser and saving should work properly # features/statements_quantity.feature:44
1690 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1691 And I am on an item page # features/step_definitions/entity_steps.rb:17
1692 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1693 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1694 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1695 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1696 And I enter 1+-0 in the claim value input field # features/step_definitions/statement_steps.rb:61
1697 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1698 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1699 ./features/step_definitions/statement_steps.rb:33:in `block (2 levels) in <top (required)>'
1700 features/statements_quantity.feature:52:in `And I click the statement save button'
1701 Then Statement string value of claim 1 in group 1 should be 1 # features/step_definitions/statement_steps.rb:228
1702 And Statement name of group 1 should be the label of quantprop # features/step_definitions/statement_steps.rb:224
1703 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1704 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1705 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1706
1707 @repo_login @modify_entity
1708 Scenario: Adding a statement of type quantity and reload page # features/statements_quantity.feature:60
1709 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1710 And I am on an item page # features/step_definitions/entity_steps.rb:17
1711 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1712 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1713 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1714 And I enter 2.1+-0.1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1715 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1716 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1717 ./features/step_definitions/statement_steps.rb:33:in `block (2 levels) in <top (required)>'
1718 features/statements_quantity.feature:67:in `And I click the statement save button'
1719 And I reload the page # features/step_definitions/entity_steps.rb:114
1720 Then Statement string value of claim 1 in group 1 should be 2.1±0.1 # features/step_definitions/statement_steps.rb:228
1721 And Statement name of group 1 should be the label of quantprop # features/step_definitions/statement_steps.rb:224
1722 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1723 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1724 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1725
1726# Wikidata UI tests
1727#
1728# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1729# License:: GNU GPL v2+
1730#
1731# feature definition for statement ranks tests
1732@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1733Feature: Setting ranks of statements
1734
1735 Background: # features/statements_rank.feature:11
1736 Given I have an item to test # features/step_definitions/entity_steps.rb:22
1737 And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1738 | stringprop | string |
1739 And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
1740 | stringprop | rank test |
1741 And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
1742 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1743 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1744
1745 @ui_only
1746 Scenario: Check indicated rank # features/statements_rank.feature:22
1747 Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
1748 And Indicated rank for claim 1 in group 1 should be normal # features/step_definitions/rank_selector_steps.rb:48
1749
1750 @ui_only
1751 Scenario: Click the rank selector # features/statements_rank.feature:27
1752 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1753 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
1754 Then Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1755 And Rank selector menu should be visible # features/step_definitions/rank_selector_steps.rb:32
1756 And Rank selector item for normal rank should be visible # features/step_definitions/rank_selector_steps.rb:40
1757 And Rank selector item for preferred rank should be visible # features/step_definitions/rank_selector_steps.rb:40
1758 And Rank selector item for deprecated rank should be visible # features/step_definitions/rank_selector_steps.rb:40
1759 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1760
1761 @ui_only
1762 Scenario: Change the rank # features/statements_rank.feature:38
1763 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1764 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
1765 And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
1766 Then Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1767 And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
1768 And Rank selector item for normal rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
1769 And Rank selector item for preferred rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
1770 And Rank selector item for deprecated rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
1771 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1772
1773 @modify_entity
1774 Scenario: Change the rank and save # features/statements_rank.feature:50
1775 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1776 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
1777 And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
1778 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1779 Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
1780 And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
1781 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1782 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1783 And Indicated rank for claim 1 in group 1 should be preferred # features/step_definitions/rank_selector_steps.rb:48
1784 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1785 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1786
1787 @modify_entity
1788 Scenario: Change the rank, save and reload # features/statements_rank.feature:64
1789 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1790 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
1791 And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
1792 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1793 And I reload the page # features/step_definitions/entity_steps.rb:114
1794 Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
1795 And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
1796 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1797 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1798 And Indicated rank for claim 1 in group 1 should be preferred # features/step_definitions/rank_selector_steps.rb:48
1799 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1800 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1801
1802# Wikidata UI tests
1803#
1804# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1805# License:: GNU GPL v2+
1806#
1807# feature definition for statement snaktype tests
1808@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1809Feature: Setting snaktypes of statements
1810
1811 Background: # features/statements_snaktype.feature:11
1812 Given I have an item to test # features/step_definitions/entity_steps.rb:22
1813 And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1814 | stringprop | string |
1815 And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
1816 | stringprop | snaktype test |
1817 And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
1818 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1819 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1820
1821 @ui_only
1822 Scenario: Click the snaktype selector # features/statements_snaktype.feature:22
1823 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1824 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
1825 Then Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
1826 And Snaktype selector menu should be visible # features/step_definitions/snaktype_selector_steps.rb:25
1827 And Snaktype selector item for novalue snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
1828 And Snaktype selector item for somevalue snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
1829 And Snaktype selector item for value snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
1830 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1831
1832 @ui_only
1833 Scenario Outline: Change the snaktype # features/statements_snaktype.feature:33
1834 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1835 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
1836 And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
1837 Then Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
1838 And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
1839 And Snaktype selector item for novalue snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
1840 And Snaktype selector item for somevalue snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
1841 And Snaktype selector item for value snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
1842 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1843 And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
1844
1845 Examples:
1846 | snaktype |
1847 | novalue |
1848 | somevalue |
1849
1850 @modify_entity
1851 Scenario Outline: Change the snaktype and save # features/statements_snaktype.feature:51
1852 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1853 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
1854 And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
1855 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1856 Then Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1857 And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
1858 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1859 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1860 And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
1861 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1862 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1863
1864 Examples:
1865 | snaktype |
1866 | novalue |
1867 | somevalue |
1868
1869 @modify_entity
1870 Scenario Outline: Change the snaktype, save and reload # features/statements_snaktype.feature:70
1871 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1872 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
1873 And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
1874 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1875 And I reload the page # features/step_definitions/entity_steps.rb:114
1876 Then Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1877 And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
1878 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1879 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1880 And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
1881 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1882 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1883
1884 Examples:
1885 | snaktype |
1886 | novalue |
1887 | somevalue |
1888
1889# Wikidata UI tests
1890#
1891# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1892# License:: GNU GPL v2+
1893#
1894# feature definition for string type statements tests
1895@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1896Feature: Creating statements of type string
1897
1898 Background: # features/statements_string.feature:11
1899 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1900 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1901 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1902
1903 @repo_login @modify_entity
1904 Scenario Outline: Adding a statement of type string # features/statements_string.feature:17
1905 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1906 | stringprop | string |
1907 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1908 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1909 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1910 And I <save> # features/step_definitions/statement_steps.rb:130
1911 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1912 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1913 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1914 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1915 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1916 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1917 And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
1918 And Statement string value of claim 1 in group 1 should be <value> # features/step_definitions/statement_steps.rb:228
1919
1920 Examples:
1921 | value | save |
1922 | it's a string | press the RETURN key in the claim value input field |
1923 | <script>$('body').empty();</script> | click the statement save button |
1924
1925 @modify_entity @repo_login
1926 Scenario: Adding a statement of type string and reload page # features/statements_string.feature:39
1927 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1928 | stringprop | string |
1929 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1930 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1931 And I enter it's a string in the claim value input field # features/step_definitions/statement_steps.rb:61
1932 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1933 And I reload the page # features/step_definitions/entity_steps.rb:114
1934 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1935 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1936 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1937 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1938 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1939 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1940 And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
1941 And Statement string value of claim 1 in group 1 should be it's a string # features/step_definitions/statement_steps.rb:228
1942
1943 @modify_entity @repo_logi
1944 Scenario: Adding a statement of type string with a too long string # features/statements_string.feature:57
1945 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1946 | stringprop | string |
1947 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1948 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1949 And I enter a too long string as claim value # features/step_definitions/statement_steps.rb:106
1950 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1951 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
1952
1953# Wikidata UI tests
1954#
1955# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1956# License:: GNU GPL v2+
1957#
1958# feature definition for time type statements tests
1959@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1960Feature: Using time properties in statements
1961
1962 Background: # features/statements_time.feature:11
1963 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1964 | timeprop | time |
1965 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1966
1967 Scenario: Time UI should work properly # features/statements_time.feature:16
1968 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1969 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1970 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1971 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1972 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
1973 And I enter 1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1974 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
1975 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1976 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1977 And InputExtender preview should be there # features/step_definitions/statement_steps.rb:280
1978 And Time precision chooser should be there # features/step_definitions/statement_steps.rb:272
1979 And Time calendar chooser should be there # features/step_definitions/statement_steps.rb:276
1980
1981 Scenario Outline: Check UI for invalid values # features/statements_time.feature:30
1982 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1983 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1984 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1985 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1986 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
1987 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1988 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1989 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1990
1991 Examples:
1992 | value |
1993 | astring |
1994 | 1 11 199 9 |
1995 | 1 AC |
1996 | 32.12.2015 |
1997
1998 # | 1.9.1999 12:12 | TODO: currently disabled see as well T102930
1999 Scenario Outline: Time parser in the preview and precision detection should work properly # features/statements_time.feature:48
2000 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2001 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2002 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2003 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2004 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2005 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2006 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
2007 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
2008 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
2009 And <preview> should be displayed in the InputExtender preview # features/step_definitions/statement_steps.rb:260
2010 And <calendar> should be the time calendar setting # features/step_definitions/statement_steps.rb:268
2011 And <precision> should be the time precision setting # features/step_definitions/statement_steps.rb:264
2012
2013 Examples:
2014 | value | preview | calendar | precision |
2015 | 1 | 1 | Julian | year |
2016 | 1 1 | January 1 | Julian | month |
2017 | 1 1 1999 | 1 January 1999 | Gregorian | day |
2018 | 12.11.1981 | 12 November 1981 | Gregorian | day |
2019 | 1 bc | 1 BCE | Julian | year |
2020 | 1 b.c. | 1 BCE | Julian | year |
2021 | 1 ad | 1 | Julian | year |
2022 | 1 ce | 1 | Julian | year |
2023 | 10000 | 10000 years CE | Gregorian | 10,000 years |
2024 | 100000 | 100000 years CE | Gregorian | 100,000 years |
2025 | 1000000 BC | 1 million years BCE | Julian | million years |
2026 | 10000000 | 10 million years CE | Gregorian | ten million years |
2027 | 100000000 | 100 million years CE | Gregorian | hundred million years |
2028 | 1000000000 BCE | 1 billion years BCE | Julian | billion years |
2029
2030 @repo_login @modify_entity
2031 Scenario Outline: Adding a statement of type time # features/statements_time.feature:80
2032 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2033 And I am on an item page # features/step_definitions/entity_steps.rb:17
2034 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2035 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2036 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2037 And I enter 14.05.1985 in the claim value input field # features/step_definitions/statement_steps.rb:61
2038 And I <save> # features/step_definitions/statement_steps.rb:31
2039 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2040 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2041 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2042 And Statement name of group 1 should be the label of timeprop # features/step_definitions/statement_steps.rb:224
2043 And Statement string value of claim 1 in group 1 should be 14 May 1985 # features/step_definitions/statement_steps.rb:228
2044
2045 Examples:
2046 | save |
2047 | click the statement save button |
2048 | press the RETURN key in the claim value input field |
2049
2050 @repo_login @modify_entity
2051 Scenario: Adding a statement of type time and reload page # features/statements_time.feature:100
2052 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2053 And I am on an item page # features/step_definitions/entity_steps.rb:17
2054 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2055 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2056 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2057 And I enter 14.05.1985 in the claim value input field # features/step_definitions/statement_steps.rb:61
2058 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2059 And I reload the page # features/step_definitions/entity_steps.rb:114
2060 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2061 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2062 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2063 And Statement name of group 1 should be the label of timeprop # features/step_definitions/statement_steps.rb:224
2064 And Statement string value of claim 1 in group 1 should be 14 May 1985 # features/step_definitions/statement_steps.rb:228
2065
2066# Wikidata UI tests
2067#
2068# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
2069# License:: GNU GPL v2+
2070#
2071# feature definition for url type statements tests
2072@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
2073Feature: Using url properties in statements
2074
2075 Background: # features/statements_url.feature:11
2076 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2077 | urlprop | url |
2078 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
2079
2080 @repo_login
2081 Scenario Outline: Check UI for invalid values # features/statements_url.feature:17
2082 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2083 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2084 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2085 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2086 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2087 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2088 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2089 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
2090 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
2091 And An error message should be displayed # features/step_definitions/entity_steps.rb:110
2092
2093 Examples:
2094 | value |
2095 | this is no url |
2096 | missing.http.org |
2097
2098 @repo_login @modify_entity
2099 Scenario Outline: Adding a statement of type url # features/statements_url.feature:35
2100 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2101 And I am on an item page # features/step_definitions/entity_steps.rb:17
2102 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2103 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2104 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2105 And I enter http://wikidata.org/ in the claim value input field # features/step_definitions/statement_steps.rb:61
2106 And I <save> # features/step_definitions/statement_steps.rb:130
2107 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
2108 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2109 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2110 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
2111 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2112 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2113 And Statement link text of claim 1 in group 1 should be http://wikidata.org/ # features/step_definitions/statement_steps.rb:248
2114
2115 Examples:
2116 | save |
2117 | press the RETURN key in the claim value input field |
2118 | click the statement save button |
2119
2120 @repo_login @modify_entity
2121 Scenario Outline: Save a statement of type url and check the output # features/statements_url.feature:57
2122 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2123 And I am on an item page # features/step_definitions/entity_steps.rb:17
2124 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2125 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2126 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2127 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2128 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2129 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2130 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2131 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2132 And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
2133 And Statement link element of claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:244
2134 And Statement link text of claim 1 in group 1 should be <value> # features/step_definitions/statement_steps.rb:248
2135
2136 Examples:
2137 | value |
2138 | ftp://ftp-stud.hs-esslingen.de/pub |
2139 | irc://irc.freenode.net/ |
2140 | mailto:mail@example.com |
2141 | http://عربي.امارات/en/ |
2142
2143 @repo_login @modify_entity
2144 Scenario: Save a statement of type url and check the link href # features/statements_url.feature:80
2145 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2146 And I am on an item page # features/step_definitions/entity_steps.rb:17
2147 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2148 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2149 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2150 And I enter http://www.wikimedia.de in the claim value input field # features/step_definitions/statement_steps.rb:61
2151 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2152 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2153 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2154 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2155 And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
2156 And Statement link element of claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:244
2157 And Statement link text of claim 1 in group 1 should be http://www.wikimedia.de # features/step_definitions/statement_steps.rb:248
2158 And Statement link url of claim 1 in group 1 should be http://www.wikimedia.de/ # features/step_definitions/statement_steps.rb:252
2159
2160 @repo_login @modify_entity
2161 Scenario: Adding a statement of type url and reload page # features/statements_url.feature:97
2162 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2163 And I am on an item page # features/step_definitions/entity_steps.rb:17
2164 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2165 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2166 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2167 And I enter http://wikidata.org/ in the claim value input field # features/step_definitions/statement_steps.rb:61
2168 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2169 And I reload the page # features/step_definitions/entity_steps.rb:114
2170 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
2171 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2172 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2173 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
2174 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2175 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2176 And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
2177 And Statement link text of claim 1 in group 1 should be http://wikidata.org/ # features/step_definitions/statement_steps.rb:248
2178
2179Failing Scenarios:
2180cucumber features/description.feature:78 # Scenario: Description with a too long value
2181cucumber features/sitelinks.feature:36 # Scenario: Type site id
2182cucumber features/sitelinks.feature:52 # Scenario: Type site id and page name
2183cucumber features/sitelinks.feature:127 # Scenario: Save sitelink and reload
2184cucumber features/sitelinks.feature:127 # Scenario: Save sitelink and reload
2185cucumber features/sitelinks.feature:143 # Scenario: Edit sitelink
2186cucumber features/sitelinks.feature:159 # Scenario: Add sitelink
2187cucumber features/sitelinks.feature:159 # Scenario: Add sitelink
2188cucumber features/sitelinks.feature:183 # Scenario: Add multiple sitelinks
2189cucumber features/sitelinks.feature:195 # Scenario: Remove multiple sitelinks
2190cucumber features/sitelinks.feature:210 # Scenario: List of sitelinks is complete
2191cucumber features/sitelinks.feature:228 # Scenario: Add new sitelink to already referenced site
2192cucumber features/sitelinks_badge.feature:18 # Scenario: Sitelink badge UI is there
2193cucumber features/statement.feature:39 # Scenario: Cancel statement
2194cucumber features/statements_monolingual.feature:42 # Scenario: Adding a statement of type monolingual
2195cucumber features/statements_monolingual.feature:42 # Scenario: Adding a statement of type monolingual
2196cucumber features/statements_monolingual.feature:63 # Scenario: Adding a statement of type monolingual and use keyboard to select language
2197cucumber features/statements_monolingual.feature:63 # Scenario: Adding a statement of type monolingual and use keyboard to select language
2198cucumber features/statements_monolingual.feature:85 # Scenario: Adding a statement of type monolingual and reload page
2199cucumber features/statements_quantity.feature:17 # Scenario: Quantity UI should work properly
2200cucumber features/statements_quantity.feature:44 # Scenario: Quantity parser and saving should work properly
2201cucumber features/statements_quantity.feature:60 # Scenario: Adding a statement of type quantity and reload page
2202
2203199 scenarios (22 failed, 5 skipped, 172 passed)
22042360 steps (22 failed, 170 skipped, 2168 passed)
220540m41.796s

1$ bundle exec cucumber
2# Wikidata UI tests
3#
4# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
5# License:: GNU GPL v2+
6#
7# feature definition for item aliases tests
8@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
9Feature: Edit aliases
10
11 Background: # features/aliases.feature:11
12 Given I am on an item page # features/step_definitions/entity_steps.rb:17
13 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
14 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
15
16 @ui_only
17 Scenario: Type new alias # features/aliases.feature:17
18 When I click the header edit button # features/step_definitions/header_steps.rb:10
19 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
20 Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
21 And Header save button should be there # features/step_definitions/header_steps.rb:45
22 And Modified alias input field should be there # features/step_definitions/aliases_steps.rb:44
23 And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
24
25 @ui_only
26 Scenario Outline: Cancel aliases # features/aliases.feature:26
27 When I click the header edit button # features/step_definitions/header_steps.rb:10
28 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
29 And I <cancel> # features/step_definitions/header_steps.rb:14
30 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
31 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
32 And New alias input field should not be there # features/step_definitions/aliases_steps.rb:40
33 And Header save button should not be there # features/step_definitions/header_steps.rb:49
34 And Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
35
36 Examples:
37 | cancel |
38 | click the header cancel button |
39 | press the ESC key in the new alias input field |
40
41 @modify_entity @save_aliases
42 Scenario Outline: Save alias # features/aliases.feature:42
43 When I click the header edit button # features/step_definitions/header_steps.rb:10
44 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
45 And I <save> # features/step_definitions/header_steps.rb:18
46 Then Aliases list should not be empty # features/step_definitions/aliases_steps.rb:64
47 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
48 And Header save button should not be there # features/step_definitions/header_steps.rb:49
49 And Header edit button should be there # features/step_definitions/header_steps.rb:29
50 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
51 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
52
53 Examples:
54 | save |
55 | click the header save button |
56 | press the RETURN key in the new alias input field |
57
58 @modify_entity @save_aliases
59 Scenario Outline: Save alias and reload # features/aliases.feature:59
60 When I click the header edit button # features/step_definitions/header_steps.rb:10
61 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
62 And I <save> # features/step_definitions/header_steps.rb:18
63 And I reload the page # features/step_definitions/entity_steps.rb:114
64 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
65 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
66 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
67
68 Examples:
69 | save |
70 | click the header save button |
71 | press the RETURN key in the new alias input field |
72
73 @modify_entity @save_aliases @smoke
74 Scenario: Save multiple aliases # features/aliases.feature:74
75 When I click the header edit button # features/step_definitions/header_steps.rb:10
76 And I enter "alias1", "alias2", "alias3" as new aliases # features/step_definitions/aliases_steps.rb:24
77 And I click the header save button # features/step_definitions/header_steps.rb:18
78 Then Aliases list should not be empty # features/step_definitions/aliases_steps.rb:64
79 And There should be 3 aliases in the list # features/step_definitions/aliases_steps.rb:72
80 And List of aliases should be "alias1", "alias2", "alias3" # features/step_definitions/aliases_steps.rb:76
81
82 @modify_entity @save_aliases
83 Scenario: Remove alias # features/aliases.feature:83
84 When I click the header edit button # features/step_definitions/header_steps.rb:10
85 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
86 And I click the header save button # features/step_definitions/header_steps.rb:18
87 And I click the header edit button # features/step_definitions/header_steps.rb:10
88 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
89 And I click the header save button # features/step_definitions/header_steps.rb:18
90 Then List of aliases should be "alias2" # features/step_definitions/aliases_steps.rb:76
91 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
92
93 @modify_entity @save_aliases
94 Scenario: Remove all aliases # features/aliases.feature:94
95 When I click the header edit button # features/step_definitions/header_steps.rb:10
96 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
97 And I click the header save button # features/step_definitions/header_steps.rb:18
98 And I click the header edit button # features/step_definitions/header_steps.rb:10
99 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
100 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
101 And I click the header save button # features/step_definitions/header_steps.rb:18
102 Then Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
103 And Header edit button should be there # features/step_definitions/header_steps.rb:29
104
105 @modify_entity @save_aliases
106 Scenario: Remove all aliases and reload # features/aliases.feature:106
107 When I click the header edit button # features/step_definitions/header_steps.rb:10
108 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
109 And I click the header save button # features/step_definitions/header_steps.rb:18
110 And I click the header edit button # features/step_definitions/header_steps.rb:10
111 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
112 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
113 And I click the header save button # features/step_definitions/header_steps.rb:18
114 And I reload the page # features/step_definitions/entity_steps.rb:114
115 Then Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
116 And Header edit button should be there # features/step_definitions/header_steps.rb:29
117
118 @ui_only
119 Scenario: Edit aliases UI # features/aliases.feature:119
120 When I click the header edit button # features/step_definitions/header_steps.rb:10
121 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
122 And I click the header save button # features/step_definitions/header_steps.rb:18
123 And I click the header edit button # features/step_definitions/header_steps.rb:10
124 Then New alias input field should be there # features/step_definitions/aliases_steps.rb:36
125 And First alias input field should contain alias123 # features/step_definitions/aliases_steps.rb:80
126 And Header save button should not be there # features/step_definitions/header_steps.rb:49
127 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
128
129 @modify_entity @save_aliases
130 Scenario: Edit multiple aliases # features/aliases.feature:130
131 When I click the header edit button # features/step_definitions/header_steps.rb:10
132 And I enter "alias1", "alias2" as new aliases # features/step_definitions/aliases_steps.rb:24
133 And I click the header save button # features/step_definitions/header_steps.rb:18
134 And I click the header edit button # features/step_definitions/header_steps.rb:10
135 And I enter "alias3", "alias4" as new aliases # features/step_definitions/aliases_steps.rb:24
136 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
137 And I change the first alias to alias5 # features/step_definitions/aliases_steps.rb:28
138 And I click the header save button # features/step_definitions/header_steps.rb:18
139 Then There should be 3 aliases in the list # features/step_definitions/aliases_steps.rb:72
140 And List of aliases should be "alias5", "alias3", "alias4" # features/step_definitions/aliases_steps.rb:76
141
142 @ui_only
143 Scenario: Duplicated aliases detection # features/aliases.feature:143
144 When I click the header edit button # features/step_definitions/header_steps.rb:10
145 And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
146 Then Duplicate alias input field should be there # features/step_definitions/aliases_steps.rb:52
147 And Header save button should be there # features/step_definitions/header_steps.rb:45
148 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
149
150 @ui_only
151 Scenario: Duplicated aliases resolve # features/aliases.feature:151
152 When I click the header edit button # features/step_definitions/header_steps.rb:10
153 And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
154 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
155 Then Duplicate alias input field should not be there # features/step_definitions/aliases_steps.rb:56
156
157 @modify_entity @save_aliases
158 Scenario: Save duplicated aliases # features/aliases.feature:158
159 When I click the header edit button # features/step_definitions/header_steps.rb:10
160 And I enter "alias1", "alias2", "alias1" as new aliases # features/step_definitions/aliases_steps.rb:24
161 And I click the header save button # features/step_definitions/header_steps.rb:18
162 Then There should be 2 aliases in the list # features/step_definitions/aliases_steps.rb:72
163 And List of aliases should be "alias1", "alias2" # features/step_definitions/aliases_steps.rb:76
164
165 @modify_entity @save_aliases
166 Scenario Outline: Special inputs for aliases # features/aliases.feature:166
167 When I click the header edit button # features/step_definitions/header_steps.rb:10
168 And I enter <alias> as new aliases # features/step_definitions/aliases_steps.rb:24
169 And I click the header save button # features/step_definitions/header_steps.rb:18
170 Then There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
171 And List of aliases should be <alias_expected> # features/step_definitions/aliases_steps.rb:76
172
173 Examples:
174 | alias | alias_expected |
175 | "0" | "0" |
176 | " norm a lize me " | "norm a lize me" |
177 | "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
178
179 @save_aliases
180 Scenario: Too long input for alias # features/aliases.feature:180
181 When I click the header edit button # features/step_definitions/header_steps.rb:10
182 And I enter "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong" as new aliases # features/step_definitions/aliases_steps.rb:24
183 And I click the header save button # features/step_definitions/header_steps.rb:18
184 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
185
186 @bugfix @modify_entity @save_aliases
187 Scenario: Zombie alias bugfix # features/aliases.feature:187
188 When I click the header edit button # features/step_definitions/header_steps.rb:10
189 And I enter "zombie" as new aliases # features/step_definitions/aliases_steps.rb:24
190 And I click the header save button # features/step_definitions/header_steps.rb:18
191 And I reload the page # features/step_definitions/entity_steps.rb:114
192 And I click the header edit button # features/step_definitions/header_steps.rb:10
193 And I empty the first alias # features/step_definitions/aliases_steps.rb:9
194 And I click the header save button # features/step_definitions/header_steps.rb:18
195 And I click the header edit button # features/step_definitions/header_steps.rb:10
196 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
197 And I click the header save button # features/step_definitions/header_steps.rb:18
198 Then There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
199 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
200
201 @bugfix @ui_only
202 Scenario: Bugfix for editbutton appearing when it should not # features/aliases.feature:202
203 When I click the header edit button # features/step_definitions/header_steps.rb:10
204 And I click the header cancel button # features/step_definitions/header_steps.rb:14
205 And I click the header edit button # features/step_definitions/header_steps.rb:10
206 Then Header edit button should not be there # features/step_definitions/header_steps.rb:33
207
208# Wikidata UI tests
209#
210# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
211# License:: GNU GPL v2+
212#
213# feature definition for authority control gadget tests
214@chrome @firefox @internet_explorer_10 @internet_explorer_11 @smoke
215Feature: Authority control gadget test
216
217 Scenario Outline: Check links created by gadget # features/authority_control_gadget.feature:11
218 When I navigate to item <item_id> with resource loader debug mode <debug_mode> # features/step_definitions/entity_steps.rb:53
219 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
220 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
221 Then Authority control link should be active for claim 1 in group 1 # features/step_definitions/authority_control_gadget_steps.rb:9
222 And Authority control link should be active for claim 1 in group 2 # features/step_definitions/authority_control_gadget_steps.rb:9
223 And Authority control link should be active for claim 1 in group 3 # features/step_definitions/authority_control_gadget_steps.rb:9
224 And Authority control link should be active for claim 1 in group 4 # features/step_definitions/authority_control_gadget_steps.rb:9
225 And Authority control link should be active for claim 1 in group 5 # features/step_definitions/authority_control_gadget_steps.rb:9
226 And Authority control link should be active for claim 1 in group 6 # features/step_definitions/authority_control_gadget_steps.rb:9
227 And Authority control link should be active for claim 1 in group 7 # features/step_definitions/authority_control_gadget_steps.rb:9
228 And Authority control link should be active for claim 1 in group 8 # features/step_definitions/authority_control_gadget_steps.rb:9
229 And Authority control link should be active for claim 1 in group 9 # features/step_definitions/authority_control_gadget_steps.rb:9
230 And Authority control link of claim 1 in group 1 should link to www.openstreetmap.org # features/step_definitions/authority_control_gadget_steps.rb:13
231 And Authority control link of claim 1 in group 2 should link to commons.wikimedia.org # features/step_definitions/authority_control_gadget_steps.rb:13
232 And Authority control link of claim 1 in group 3 should link to tools.wmflabs.org/geohack/geohack.php # features/step_definitions/authority_control_gadget_steps.rb:13
233 And Authority control link of claim 1 in group 4 should link to imdb.com # features/step_definitions/authority_control_gadget_steps.rb:13
234 And Authority control link of claim 1 in group 5 should link to d-nb.info # features/step_definitions/authority_control_gadget_steps.rb:13
235 And Authority control link of claim 1 in group 6 should link to viaf.org # features/step_definitions/authority_control_gadget_steps.rb:13
236 And Authority control link of claim 1 in group 7 should link to www.dmoz.org # features/step_definitions/authority_control_gadget_steps.rb:13
237 And Authority control link of claim 1 in group 8 should link to musicbrainz.org # features/step_definitions/authority_control_gadget_steps.rb:13
238 And Authority control link of claim 1 in group 9 should link to www.freebase.com # features/step_definitions/authority_control_gadget_steps.rb:13
239
240 Examples:
241 | item_id | debug_mode |
242 | Q12480 | false |
243 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
244 ./features/support/modules/entity_module.rb:63:in `/^I navigate to item (.*) with resource loader debug mode (.*)$/'
245 features/authority_control_gadget.feature:12:in `When I navigate to item <item_id> with resource loader debug mode <debug_mode>'
246 | Q12480 | true |
247 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
248 ./features/support/modules/entity_module.rb:63:in `/^I navigate to item (.*) with resource loader debug mode (.*)$/'
249 features/authority_control_gadget.feature:12:in `When I navigate to item <item_id> with resource loader debug mode <debug_mode>'
250
251# Wikidata item tests
252#
253# License:: GNU GPL v2+
254#
255# feature the delete of an item
256@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
257Feature: Delete item
258
259 Scenario: Delete item # features/delete_item.feature:10
260 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
261 And I am on an item page # features/step_definitions/entity_steps.rb:17
262 When I click the item delete button # features/step_definitions/delete_item_steps.rb:8
263 Then Page should be deleted # features/step_definitions/delete_item_steps.rb:12
264
265# Wikidata UI tests
266#
267# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
268# License:: GNU GPL v2+
269#
270# feature definition for item description tests
271@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
272Feature: Edit description
273
274 Background: # features/description.feature:11
275 Given I am on an item page # features/step_definitions/entity_steps.rb:17
276 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
277 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
278
279 @ui_only
280 Scenario: Modify the description # features/description.feature:17
281 When I click the header edit button # features/step_definitions/header_steps.rb:10
282 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
283 Then Header save button should be there # features/step_definitions/header_steps.rb:45
284 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
285 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
286
287 @ui_only
288 Scenario Outline: Cancel description # features/description.feature:25
289 When I click the header edit button # features/step_definitions/header_steps.rb:10
290 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
291 And I <cancel> # features/step_definitions/header_steps.rb:14
292 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
293 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
294 And Original description should be displayed # features/step_definitions/description_steps.rb:51
295
296 Examples:
297 | cancel |
298 | click the header cancel button |
299 | press the ESC key in the description input field |
300
301 @save_description @modify_entity
302 Scenario Outline: Save description # features/description.feature:39
303 When I click the header edit button # features/step_definitions/header_steps.rb:10
304 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
305 And I <save> # features/step_definitions/header_steps.rb:18
306 Then "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
307
308 Examples:
309 | save |
310 | click the header save button |
311 | press the RETURN key in the description input field |
312
313 @save_description @modify_entity
314 Scenario Outline: Save description # features/description.feature:51
315 When I click the header edit button # features/step_definitions/header_steps.rb:10
316 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
317 And I <save> # features/step_definitions/header_steps.rb:18
318 And I reload the page # features/step_definitions/entity_steps.rb:114
319 Then "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
320
321 Examples:
322 | save |
323 | click the header save button |
324 | press the RETURN key in the description input field |
325
326 @save_description @modify_entity
327 Scenario Outline: Description with special input # features/description.feature:64
328 When I click the header edit button # features/step_definitions/header_steps.rb:10
329 And I enter <description> as description # features/step_definitions/description_steps.rb:20
330 And I click the header save button # features/step_definitions/header_steps.rb:18
331 Then <expected_description> should be displayed as description # features/step_definitions/description_steps.rb:59
332
333 Examples:
334 | description | expected_description |
335 | "0" | "0" |
336 | " norm a lize me " | "norm a lize me" |
337 | "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
338 | "{{Template:blabla}}" | "{{Template:blabla}}" |
339
340 @save_description
341 Scenario: Description with a too long value # features/description.feature:78
342 When I click the header edit button # features/step_definitions/header_steps.rb:10
343 And I enter a long string as description # features/step_definitions/description_steps.rb:27
344 And I click the header save button # features/step_definitions/header_steps.rb:18
345 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
346
347 expected #<TrueClass:20> => true
348 got #<FalseClass:0> => false
349
350 Compared using equal?, which compares object identity,
351 but expected and actual are not the same object. Use
352 `expect(actual).to eq(expected)` if you don't care about
353 object identity in this example.
354
355 (RSpec::Expectations::ExpectationNotMetError)
356 features/description.feature:82:in `Then An error message should be displayed'
357
358# Wikidata item tests
359#
360# License:: GNU GPL v2+
361#
362# feature the functionality of the edit tab function
363@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
364Feature: Edit tab
365
366 Scenario: Edit tab # features/edit_tab.feature:10
367 Given I am on an item page # features/step_definitions/entity_steps.rb:17
368 Then the edit-tab button should not be visible # features/step_definitions/edit_tab_steps.rb:8
369
370# Wikidata UI tests
371#
372# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
373# License:: GNU GPL v2+
374#
375# feature definition for item description tests
376@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
377Feature: Empty label and description behaviour
378
379 Background: # features/empty_label_and_description.feature:11
380 Given I am on an item page with empty label and description # features/step_definitions/entity_steps.rb:95
381 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
382 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
383
384 @ui_only
385 Scenario: Description UI is shown correctly when description is empty # features/empty_label_and_description.feature:17
386 Then Description input element should not be there # features/step_definitions/description_steps.rb:35
387 And Header edit button should be there # features/step_definitions/header_steps.rb:29
388 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
389 And Header save button should not be there # features/step_definitions/header_steps.rb:49
390
391 @ui_only
392 Scenario: Description UI is shown correctly when description is empty # features/empty_label_and_description.feature:24
393 When I click the header edit button # features/step_definitions/header_steps.rb:10
394 Then Description input element should be there # features/step_definitions/description_steps.rb:31
395 And Description input element should be empty # features/step_definitions/description_steps.rb:43
396 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
397 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
398 And Header save button should not be there # features/step_definitions/header_steps.rb:49
399
400 @ui_only
401 Scenario: Description UI behaves correctly when description is empty # features/empty_label_and_description.feature:33
402 When I click the header edit button # features/step_definitions/header_steps.rb:10
403 And I enter "NEW DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
404 Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
405 And Header save button should be there # features/step_definitions/header_steps.rb:45
406
407 @ui_only @smoke
408 Scenario: Description UI behaves correctly when description is empty # features/empty_label_and_description.feature:40
409 When I click the header edit button # features/step_definitions/header_steps.rb:10
410 And I enter "NEW DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
411 And I click the header cancel button # features/step_definitions/header_steps.rb:14
412 Then Header cancel button should not be there # features/step_definitions/header_steps.rb:41
413 And Header edit button should be there # features/step_definitions/header_steps.rb:29
414 And Header save button should not be there # features/step_definitions/header_steps.rb:49
415 And Description input element should not be there # features/step_definitions/description_steps.rb:35
416
417 @ui_only
418 Scenario: Label UI is shown correctly when label is empty # features/empty_label_and_description.feature:50
419 Then Label input element should not be there # features/step_definitions/label_steps.rb:40
420 And Header edit button should be there # features/step_definitions/header_steps.rb:29
421 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
422 And Header save button should not be there # features/step_definitions/header_steps.rb:49
423
424 @ui_only
425 Scenario: Label UI is shown correctly when label is empty # features/empty_label_and_description.feature:57
426 When I click the header edit button # features/step_definitions/header_steps.rb:10
427 Then Label input element should be there # features/step_definitions/label_steps.rb:36
428 And Label input element should be empty # features/step_definitions/label_steps.rb:48
429 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
430 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
431 And Header save button should not be there # features/step_definitions/header_steps.rb:49
432
433 @ui_only
434 Scenario: Label UI behaves correctly when label is empty # features/empty_label_and_description.feature:66
435 When I click the header edit button # features/step_definitions/header_steps.rb:10
436 And I enter "NEW LABEL" as label # features/step_definitions/label_steps.rb:20
437 Then Header cancel button should be there # features/step_definitions/header_steps.rb:37
438 And Header save button should be there # features/step_definitions/header_steps.rb:45
439
440 @ui_only
441 Scenario: Label UI behaves correctly when label is empty # features/empty_label_and_description.feature:73
442 When I click the header edit button # features/step_definitions/header_steps.rb:10
443 And I enter "NEW LABEL" as label # features/step_definitions/label_steps.rb:20
444 And I click the header cancel button # features/step_definitions/header_steps.rb:14
445 Then Header cancel button should not be there # features/step_definitions/header_steps.rb:41
446 And Header edit button should be there # features/step_definitions/header_steps.rb:29
447 And Header save button should not be there # features/step_definitions/header_steps.rb:49
448 And Label input element should not be there # features/step_definitions/label_steps.rb:40
449
450# Wikidata UI tests
451#
452# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
453# License:: GNU GPL v2+
454#
455# feature definition for item header tests
456@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
457Feature: Use header
458
459 Background: # features/header.feature:11
460 Given I am on an item page # features/step_definitions/entity_steps.rb:17
461 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
462 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
463
464 @ui_only
465 Scenario: Header UI has all required elements # features/header.feature:17
466 Then Original label should be displayed # features/step_definitions/label_steps.rb:56
467 And Original description should be displayed # features/step_definitions/description_steps.rb:51
468 And Header edit button should be there # features/step_definitions/header_steps.rb:29
469 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
470 And Header save button should not be there # features/step_definitions/header_steps.rb:49
471
472 @ui_only
473 Scenario: Click edit button # features/header.feature:25
474 When I click the header edit button # features/step_definitions/header_steps.rb:10
475 Then Header edit button should not be there # features/step_definitions/header_steps.rb:33
476 And Header save button should not be there # features/step_definitions/header_steps.rb:49
477 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
478 And Label input element should be there # features/step_definitions/label_steps.rb:36
479 And Label input element should contain original label # features/step_definitions/label_steps.rb:44
480 And Description input element should be there # features/step_definitions/description_steps.rb:31
481 And Description input element should contain original description # features/step_definitions/description_steps.rb:39
482 And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
483
484 @ui_only
485 Scenario: Modify label, description and aliases # features/header.feature:37
486 When I click the header edit button # features/step_definitions/header_steps.rb:10
487 And I enter random string as label # features/step_definitions/label_steps.rb:27
488 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
489 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
490 Then Header save button should be there # features/step_definitions/header_steps.rb:45
491 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
492 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
493 And Modified alias input field should be there # features/step_definitions/aliases_steps.rb:44
494 And New alias input field should be there # features/step_definitions/aliases_steps.rb:36
495
496 @ui_only
497 Scenario Outline: Cancel label, description and aliases # features/header.feature:49
498 When I click the header edit button # features/step_definitions/header_steps.rb:10
499 And I enter random string as label # features/step_definitions/label_steps.rb:27
500 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
501 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
502 And I <cancel> # features/step_definitions/header_steps.rb:14
503 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
504 And Header save button should not be there # features/step_definitions/header_steps.rb:49
505 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
506 And Original description should be displayed # features/step_definitions/description_steps.rb:51
507 And Original label should be displayed # features/step_definitions/label_steps.rb:56
508 And Aliases list should be empty # features/step_definitions/aliases_steps.rb:60
509
510 Examples:
511 | cancel |
512 | click the header cancel button |
513 | press the ESC key in the label input field |
514
515 @modify_entity @save_description @save_aliases @save_label
516 Scenario Outline: Save label, description and aliases # features/header.feature:69
517 When I click the header edit button # features/step_definitions/header_steps.rb:10
518 And I enter random string as label # features/step_definitions/label_steps.rb:27
519 And I enter "MODIFIED DESCRIPTION" as description # features/step_definitions/description_steps.rb:20
520 And I enter "alias123" as new aliases # features/step_definitions/aliases_steps.rb:24
521 And I <save> # features/step_definitions/header_steps.rb:18
522 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
523 And Header save button should not be there # features/step_definitions/header_steps.rb:49
524 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
525 And random string should be displayed as label # features/step_definitions/label_steps.rb:86
526 And "MODIFIED DESCRIPTION" should be displayed as description # features/step_definitions/description_steps.rb:59
527 And There should be 1 aliases in the list # features/step_definitions/aliases_steps.rb:72
528 And List of aliases should be "alias123" # features/step_definitions/aliases_steps.rb:76
529
530 Examples:
531 | save |
532 | click the header save button |
533 | press the RETURN key in the description input field |
534
535 @bugfix @modify_entity
536 Scenario: EntityTermView bugfix # features/header.feature:89
537 When I click the header edit button # features/step_definitions/header_steps.rb:10
538 And I enter random string as label # features/step_definitions/label_steps.rb:27
539 And I click the header save button # features/step_definitions/header_steps.rb:18
540 And I reload the page # features/step_definitions/entity_steps.rb:114
541 Then random string should be displayed as label # features/step_definitions/label_steps.rb:86
542 And random string should be displayed as English label in the EntityTermView box # features/step_definitions/label_steps.rb:74
543
544# Wikidata UI tests
545#
546# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
547# License:: GNU GPL v2+
548#
549# feature definition for item smoke test
550@smoke @firefox @chrome @internet_explorer_10 @internet_explorer_11
551Feature: Item smoke test
552
553 Scenario Outline: Check UI elements # features/item_smoke.feature:11
554 When I navigate to item <item_id> with resource loader debug mode <debug_mode> # features/step_definitions/entity_steps.rb:53
555 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
556 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
557 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
558 And Label element should be there # features/step_definitions/label_steps.rb:64
559 And <label> should be displayed as label # features/step_definitions/label_steps.rb:78
560 And <item_id> should be displayed as entity id next to the label # features/step_definitions/label_steps.rb:99
561 And Header edit button should be there # features/step_definitions/header_steps.rb:29
562 And Description element should be there # features/step_definitions/description_steps.rb:47
563 And <description> should be displayed as description # features/step_definitions/description_steps.rb:59
564 And Header edit button should be there # features/step_definitions/header_steps.rb:29
565 And List of aliases should be <aliases> # features/step_definitions/aliases_steps.rb:76
566 And There should be <num_aliases> aliases in the list # features/step_definitions/aliases_steps.rb:72
567 And Header edit button should be there # features/step_definitions/header_steps.rb:29
568 And Statements heading should be there # features/step_definitions/statement_steps.rb:157
569 And Statement add button should be there # features/step_definitions/statement_steps.rb:169
570 And Statement add button for group 1 should be there # features/step_definitions/statement_steps.rb:181
571 And Statement add button for group 2 should be there # features/step_definitions/statement_steps.rb:181
572 And Statement add button for group 17 should be there # features/step_definitions/statement_steps.rb:181
573 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
574 And Statement edit button for claim 2 in group 1 should be there # features/step_definitions/statement_steps.rb:177
575 And Statement edit button for claim 1 in group 17 should be there # features/step_definitions/statement_steps.rb:177
576 And Statement edit button for claim 5 in group 17 should be there # features/step_definitions/statement_steps.rb:177
577 And Sitelink heading should be there # features/step_definitions/sitelinks_steps.rb:71
578 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
579 And Sitelink counter should be there # features/step_definitions/sitelinks_steps.rb:126
580 And There should be <num_sitelinks> sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
581
582 Examples:
583 | item_id | label | description | aliases | num_aliases | num_sitelinks | debug_mode |
584 | Q15905 | "Italy" | "republic in Southern Europe" | "Italia", "Italian Republic", "Italië" | 3 | 2 | false |
585 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
586 ./features/support/modules/entity_module.rb:63:in `/^I navigate to item (.*) with resource loader debug mode (.*)$/'
587 features/item_smoke.feature:12:in `When I navigate to item <item_id> with resource loader debug mode <debug_mode>'
588 | Q15905 | "Italy" | "republic in Southern Europe" | "Italia", "Italian Republic", "Italië" | 3 | 2 | true |
589 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
590 ./features/support/modules/entity_module.rb:63:in `/^I navigate to item (.*) with resource loader debug mode (.*)$/'
591 features/item_smoke.feature:12:in `When I navigate to item <item_id> with resource loader debug mode <debug_mode>'
592
593 Scenario Outline: Click UI elements # features/item_smoke.feature:46
594 When I navigate to item <item_id> with resource loader debug mode <debug_mode> # features/step_definitions/entity_steps.rb:53
595 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
596 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
597 And I click the header edit button # features/step_definitions/header_steps.rb:10
598 And I click the header cancel button # features/step_definitions/header_steps.rb:14
599 And I click the statement add button # features/step_definitions/statement_steps.rb:19
600 And I click the statement cancel button # features/step_definitions/statement_steps.rb:27
601 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
602 And I click the sitelink cancel button # features/step_definitions/sitelinks_steps.rb:17
603 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
604 And Statement add button for group 1 should be there # features/step_definitions/statement_steps.rb:181
605 And Statement add button should be there # features/step_definitions/statement_steps.rb:169
606 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
607
608 Examples:
609 | item_id | debug_mode |
610 | Q15905 | false |
611 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
612 ./features/support/modules/entity_module.rb:63:in `/^I navigate to item (.*) with resource loader debug mode (.*)$/'
613 features/item_smoke.feature:47:in `When I navigate to item <item_id> with resource loader debug mode <debug_mode>'
614 | Q15905 | true |
615 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
616 ./features/support/modules/entity_module.rb:63:in `/^I navigate to item (.*) with resource loader debug mode (.*)$/'
617 features/item_smoke.feature:47:in `When I navigate to item <item_id> with resource loader debug mode <debug_mode>'
618
619# Wikidata UI tests
620#
621# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
622# License:: GNU GPL v2+
623#
624# feature definition for item label tests
625@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
626Feature: Edit label
627
628 Background: # features/label.feature:11
629 Given I am on an item page # features/step_definitions/entity_steps.rb:17
630 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
631 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
632
633 @ui_only
634 Scenario: Modify the label # features/label.feature:17
635 When I click the header edit button # features/step_definitions/header_steps.rb:10
636 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
637 Then Header save button should be there # features/step_definitions/header_steps.rb:45
638 And Header cancel button should be there # features/step_definitions/header_steps.rb:37
639 And Header edit button should not be there # features/step_definitions/header_steps.rb:33
640
641 @ui_only
642 Scenario Outline: Cancel label # features/label.feature:25
643 When I click the header edit button # features/step_definitions/header_steps.rb:10
644 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
645 And I <cancel> # features/step_definitions/header_steps.rb:14
646 Then Original label should be displayed # features/step_definitions/label_steps.rb:56
647 And Header edit button should be there # features/step_definitions/header_steps.rb:29
648 And Header cancel button should not be there # features/step_definitions/header_steps.rb:41
649
650 Examples:
651 | cancel |
652 | click the header cancel button |
653 | press the ESC key in the label input field |
654
655 @modify_entity @save_label @smoke
656 Scenario Outline: Save label # features/label.feature:39
657 When I click the header edit button # features/step_definitions/header_steps.rb:10
658 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
659 And I <save> # features/step_definitions/header_steps.rb:18
660 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
661 And "MODIFIED LABEL" should be displayed as label # features/step_definitions/label_steps.rb:78
662
663 Examples:
664 | save |
665 | click the header save button |
666 | press the RETURN key in the label input field |
667
668 @modify_entity @save_label
669 Scenario Outline: Save label and reload # features/label.feature:52
670 When I click the header edit button # features/step_definitions/header_steps.rb:10
671 And I enter "MODIFIED LABEL" as label # features/step_definitions/label_steps.rb:20
672 And I <save> # features/step_definitions/header_steps.rb:18
673 And I reload the page # features/step_definitions/entity_steps.rb:114
674 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
675 And "MODIFIED LABEL" should be displayed as label # features/step_definitions/label_steps.rb:78
676
677 Examples:
678 | save |
679 | click the header save button |
680 | press the RETURN key in the label input field |
681
682 @modify_entity @save_label
683 Scenario Outline: Label with special input # features/label.feature:66
684 When I click the header edit button # features/step_definitions/header_steps.rb:10
685 And I enter <label> as label # features/step_definitions/label_steps.rb:20
686 And I click the header save button # features/step_definitions/header_steps.rb:18
687 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
688 And <expected_label> should be displayed as label # features/step_definitions/label_steps.rb:78
689
690 Examples:
691 | label | expected_label |
692 | "0" | "0" |
693 | " normalize me " | "normalize me" |
694 | "<script>$('body').empty();</script>" | "<script>$('body').empty();</script>" |
695 | "{{Template:blabla}}" | "{{Template:blabla}}" |
696
697 @save_label
698 Scenario: Label with a too long value # features/label.feature:81
699 When I click the header edit button # features/step_definitions/header_steps.rb:10
700 And I enter a long string as label # features/step_definitions/label_steps.rb:32
701 And I click the header save button # features/step_definitions/header_steps.rb:18
702 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
703
704# Wikidata item tests
705#
706# License:: GNU GPL v2+
707#
708# feature the functionality of a non existing item page
709@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
710Feature: Non existing item
711
712 Scenario: Edit tab # features/non_existing_item.feature:10
713 Given I am on an non existing item page # features/step_definitions/non_existing_item_steps.rb:8
714 Then check if this page behaves correctly # features/step_definitions/non_existing_item_steps.rb:12
715
716# Wikidata item tests
717#
718# License:: GNU GPL v2+
719#
720# testing loading time of huge entities
721@chrome @firefox @internet_explorer_10 @internet_explorer_11 @performance_testing
722Feature: High performance
723
724 Background: # features/performance_test.feature:10
725 Given Entity Italy defined in data/q38.json exists # features/step_definitions/performance_test_steps.rb:10
726 undefined method `new' for EntityPage:Module (NoMethodError)
727 features/performance_test.feature:11:in `Given Entity Italy defined in data/q38.json exists'
728
729 Scenario Outline: Loading a huge entity # features/performance_test.feature:13
730 When I load the huge item <item> # features/step_definitions/performance_test_steps.rb:22
731 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
732 And Statement add button should be there # features/step_definitions/statement_steps.rb:169
733
734 Examples:
735 | item |
736 | Italy |
737
738# Wikidata UI tests
739#
740# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
741# License:: GNU GPL v2+
742#
743# feature definition for property smoke test
744@chrome @firefox @internet_explorer_10 @internet_explorer_11 @smoke
745Feature: Property smoke test
746
747 @smoke
748 Scenario Outline: Check UI elements # features/property_smoke.feature:12
749 When I navigate to property <property_id> with resource loader debug mode <debug_mode> # features/step_definitions/entity_steps.rb:59
750 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
751 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
752 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
753 And Label element should be there # features/step_definitions/label_steps.rb:64
754 And <label> should be displayed as label # features/step_definitions/label_steps.rb:78
755 And <property_id> should be displayed as entity id next to the label # features/step_definitions/label_steps.rb:99
756 And Header edit button should be there # features/step_definitions/header_steps.rb:29
757 And Description element should be there # features/step_definitions/description_steps.rb:47
758 And <description> should be displayed as description # features/step_definitions/description_steps.rb:59
759 And Header edit button should be there # features/step_definitions/header_steps.rb:29
760 And List of aliases should be <aliases> # features/step_definitions/aliases_steps.rb:76
761 And There should be <num_aliases> aliases in the list # features/step_definitions/aliases_steps.rb:72
762 And Header edit button should be there # features/step_definitions/header_steps.rb:29
763 And Property datatype heading should be there # features/step_definitions/property_steps.rb:9
764 And Property datatype should display <datatype> # features/step_definitions/property_steps.rb:13
765 And Statements heading should be there # features/step_definitions/statement_steps.rb:157
766 And Statement add button should be there # features/step_definitions/statement_steps.rb:169
767 And Sitelink heading should not be there # features/step_definitions/sitelinks_steps.rb:75
768 And Sitelink edit button should not be there # features/step_definitions/sitelinks_steps.rb:96
769
770 Examples:
771 | property_id | label | description | aliases | num_aliases | datatype | debug_mode |
772 | P694 | "instance of" | "this item is a concrete object (instance) of this class, category or object group" | "is a", "is an", "rdf:type" | 3 | Item | false |
773 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
774 ./features/support/modules/entity_module.rb:63:in `/^I navigate to property (.*) with resource loader debug mode (.*)$/'
775 features/property_smoke.feature:13:in `When I navigate to property <property_id> with resource loader debug mode <debug_mode>'
776 | P694 | "instance of" | "this item is a concrete object (instance) of this class, category or object group" | "is a", "is an", "rdf:type" | 3 | Item | true |
777 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
778 ./features/support/modules/entity_module.rb:63:in `/^I navigate to property (.*) with resource loader debug mode (.*)$/'
779 features/property_smoke.feature:13:in `When I navigate to property <property_id> with resource loader debug mode <debug_mode>'
780
781 @smoke
782 Scenario Outline: Click UI elements # features/property_smoke.feature:41
783 When I navigate to property <property_id> with resource loader debug mode <debug_mode> # features/step_definitions/entity_steps.rb:59
784 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
785 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
786 And I click the header edit button # features/step_definitions/header_steps.rb:10
787 And I click the header cancel button # features/step_definitions/header_steps.rb:14
788 Then Header edit button should be there # features/step_definitions/header_steps.rb:29
789 And Statement add button should be there # features/step_definitions/statement_steps.rb:169
790 And Sitelink edit button should not be there # features/step_definitions/sitelinks_steps.rb:96
791
792 Examples:
793 | property_id | debug_mode |
794 | P694 | false |
795 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
796 ./features/support/modules/entity_module.rb:63:in `/^I navigate to property (.*) with resource loader debug mode (.*)$/'
797 features/property_smoke.feature:42:in `When I navigate to property <property_id> with resource loader debug mode <debug_mode>'
798 | P694 | true |
799 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
800 ./features/support/modules/entity_module.rb:63:in `/^I navigate to property (.*) with resource loader debug mode (.*)$/'
801 features/property_smoke.feature:42:in `When I navigate to property <property_id> with resource loader debug mode <debug_mode>'
802
803 @smoke @wikidata.beta.wmflabs.org
804 Scenario: Click statement add button # features/property_smoke.feature:58
805 When I navigate to property id P694 # features/step_definitions/entity_steps.rb:65
806 unable to locate element, using {:css=>".wikibase-title-id", :tag_name=>"span"} (Watir::Exception::UnknownObjectException)
807 ./features/support/modules/entity_module.rb:63:in `/^I navigate to property id (.*)$/'
808 features/property_smoke.feature:59:in `When I navigate to property id P694'
809 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
810 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
811 And I click the statement add button # features/step_definitions/statement_steps.rb:19
812 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
813 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
814 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
815 And Statement help field should be there # features/step_definitions/statement_steps.rb:165
816 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
817 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
818 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
819 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
820
821 @smoke @modify_entity
822 Scenario: Save statement # features/property_smoke.feature:73
823 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
824 | stringprop | string |
825 When I navigate to property handle stringprop # features/step_definitions/entity_steps.rb:71
826 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
827 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
828 And I click the statement add button # features/step_definitions/statement_steps.rb:19
829 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
830 And I enter it's a string in the claim value input field # features/step_definitions/statement_steps.rb:61
831 And I click the statement save button # features/step_definitions/statement_steps.rb:31
832 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
833 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
834 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
835 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
836 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
837 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
838 And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
839 And Statement string value of claim 1 in group 1 should be it's a string # features/step_definitions/statement_steps.rb:228
840
841# Wikidata UI tests
842#
843# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
844# License:: GNU GPL v2+
845#
846# feature definition for references
847@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
848Feature: Adding references to statements
849
850 Background: # features/reference.feature:11
851 Given I have an item to test # features/step_definitions/entity_steps.rb:22
852 And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
853 | stringprop | string |
854 And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
855 | stringprop | reference test |
856 And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
857 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
858 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
859
860 @ui_only
861 Scenario: Reference UI has all required elements # features/reference.feature:22
862 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
863 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
864 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
865 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
866 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
867
868 @ui_only
869 Scenario: References toggler # features/reference.feature:30
870 When I click the toggle references link of statement 1 # features/step_definitions/reference_steps.rb:31
871 Then Reference add button should not be there # features/step_definitions/reference_steps.rb:42
872 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
873 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
874 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
875
876 @ui_only
877 Scenario: Click the Add Reference button # features/reference.feature:38
878 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
879 And I click the reference add button # features/step_definitions/reference_steps.rb:9
880 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
881 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
882 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
883 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
884 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
885 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
886 And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
887 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
888
889 @ui_only
890 Scenario Outline: Cancel reference # features/reference.feature:51
891 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
892 And I click the reference add button # features/step_definitions/reference_steps.rb:9
893 And I <cancel> # features/step_definitions/statement_steps.rb:27
894 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
895 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
896 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
897 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
898 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
899 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
900 And Reference remove button should not be there # features/step_definitions/reference_steps.rb:55
901 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
902 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
903
904 Examples:
905 | cancel |
906 | click the statement cancel button |
907 | press the ESC key in the snak entity selector input field |
908
909 @ui_only
910 Scenario: Select a property # features/reference.feature:71
911 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
912 And I click the reference add button # features/step_definitions/reference_steps.rb:9
913 And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
914 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
915 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
916 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
917 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
918 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
919 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
920 And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
921 And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
922
923 @ui_only
924 Scenario: Select a property and enter a value # features/reference.feature:85
925 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
926 And I click the reference add button # features/step_definitions/reference_steps.rb:9
927 And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
928 And I enter something as string snak value # features/step_definitions/statement_steps.rb:94
929 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
930 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
931 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
932 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
933 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
934 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
935 And Snak entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:17
936 And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
937
938 @modify_entity @repo_login
939 Scenario Outline: Add reference with one snak # features/reference.feature:100
940 When I click the statement edit button # features/step_definitions/statement_steps.rb:23
941 And I click the reference add button # features/step_definitions/reference_steps.rb:9
942 And I select the snak property stringprop # features/step_definitions/statement_steps.rb:46
943 And I enter test as string snak value # features/step_definitions/statement_steps.rb:94
944 And I <save> # features/step_definitions/statement_steps.rb:31
945 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
946 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
947 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
948 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
949 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
950 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
951 And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
952 And Property of snak 1 of reference 1 should be label of stringprop # features/step_definitions/reference_steps.rb:98
953 And Value of snak 1 of reference 1 should be test # features/step_definitions/reference_steps.rb:110
954 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
955
956 Examples:
957 | save |
958 | click the statement save button |
959 | press the RETURN key in the snak value input field |
960
961 @modify_entity @repo_login
962 Scenario: Add reference with multiple snaks # features/reference.feature:122
963 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
964 | stringprop1 | string |
965 | stringprop2 | string |
966 | stringprop3 | string |
967 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
968 | stringprop1 | test1 |
969 | stringprop2 | test2 |
970 | stringprop3 | test3 |
971 And I reload the page # features/step_definitions/entity_steps.rb:114
972 And I click the toggle references link of statement 1 # features/step_definitions/reference_steps.rb:31
973 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
974 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
975 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
976 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
977 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
978 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
979 And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
980 And Property of snak 2 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
981 And Property of snak 3 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
982 And Property of snak 1 of reference 1 should be label of stringprop1 # features/step_definitions/reference_steps.rb:98
983 And Property of snak 2 of reference 1 should be label of stringprop2 # features/step_definitions/reference_steps.rb:98
984 And Property of snak 3 of reference 1 should be label of stringprop3 # features/step_definitions/reference_steps.rb:98
985 And Value of snak 1 of reference 1 should be test1 # features/step_definitions/reference_steps.rb:110
986 And Value of snak 2 of reference 1 should be test2 # features/step_definitions/reference_steps.rb:110
987 And Value of snak 3 of reference 1 should be test3 # features/step_definitions/reference_steps.rb:110
988 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
989
990 @modify_entity @repo_login
991 Scenario: Check UI elements when editing reference # features/reference.feature:151
992 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
993 | stringprop | string |
994 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
995 | stringprop | test |
996 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
997 Then Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
998 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
999 And Reference remove button should be there # features/step_definitions/reference_steps.rb:51
1000 And Reference remove snak button should be disabled # features/step_definitions/reference_steps.rb:72
1001 And Reference add snak button should be there # features/step_definitions/reference_steps.rb:77
1002 And Reference add button should be there # features/step_definitions/reference_steps.rb:38
1003 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
1004 And Snak value input element should be there # features/step_definitions/statement_steps.rb:216
1005
1006 @modify_entity @repo_login
1007 Scenario: Edit reference with one snak # features/reference.feature:167
1008 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1009 | stringprop | string |
1010 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
1011 | stringprop | test |
1012 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
1013 And I enter modified as string snak value # features/step_definitions/statement_steps.rb:94
1014 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1015 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1016 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1017 And Reference add snak button should not be there # features/step_definitions/reference_steps.rb:81
1018 And Reference remove snak button should not be there # features/step_definitions/reference_steps.rb:68
1019 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
1020 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
1021 And Property of snak 1 of reference 1 should be linked # features/step_definitions/reference_steps.rb:106
1022 And Property of snak 1 of reference 1 should be label of stringprop # features/step_definitions/reference_steps.rb:98
1023 And Value of snak 1 of reference 1 should be modified # features/step_definitions/reference_steps.rb:110
1024 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
1025
1026 @modify_entity @repo_login
1027 Scenario: Remove complete reference # features/reference.feature:187
1028 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1029 | stringprop | string |
1030 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
1031 | stringprop | test |
1032 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
1033 And I click the reference remove button # features/step_definitions/reference_steps.rb:13
1034 Then Reference add button should be there # features/step_definitions/reference_steps.rb:38
1035 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1036 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1037 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
1038 And Reference counter should show 0 # features/step_definitions/reference_steps.rb:94
1039 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
1040 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
1041 And Property of snak 1 of reference 1 should not be there # features/step_definitions/reference_steps.rb:102
1042 And Value of snak 1 of reference 1 should not be there # features/step_definitions/reference_steps.rb:114
1043
1044 @modify_entity @repo_login
1045 Scenario: Remove reference snak # features/reference.feature:205
1046 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1047 | stringprop1 | string |
1048 | stringprop2 | string |
1049 And I add the following reference snaks: # features/step_definitions/reference_steps.rb:25
1050 | stringprop1 | test1 |
1051 | stringprop2 | test2 |
1052 And I click the statement edit button # features/step_definitions/statement_steps.rb:23
1053 And I remove reference snak 1 # features/step_definitions/reference_steps.rb:21
1054 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1055 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1056 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1057 And Reference counter should be there # features/step_definitions/reference_steps.rb:90
1058 And Reference counter should show 1 # features/step_definitions/reference_steps.rb:94
1059 And Snak entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:21
1060 And Snak value input element should not be there # features/step_definitions/statement_steps.rb:220
1061 And Property of snak 1 of reference 1 should be label of stringprop2 # features/step_definitions/reference_steps.rb:98
1062 And Value of snak 1 of reference 1 should be test2 # features/step_definitions/reference_steps.rb:110
1063 And Property of snak 2 of reference 1 should not be there # features/step_definitions/reference_steps.rb:102
1064 And Value of snak 2 of reference 1 should not be there # features/step_definitions/reference_steps.rb:114
1065
1066# Wikidata UI tests
1067#
1068# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1069# License:: GNU GPL v2+
1070#
1071# feature definition for item sitelinks tests
1072@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1073Feature: Edit sitelinks
1074
1075 Background: # features/sitelinks.feature:11
1076 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1077 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1078 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1079
1080 @ui_only
1081 Scenario: Sitelink UI has all required elements # features/sitelinks.feature:17
1082 Then wikipedia sitelink section should be there # features/step_definitions/sitelinks_steps.rb:67
1083 And Sitelink heading should be there # features/step_definitions/sitelinks_steps.rb:71
1084 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1085 And Sitelink counter should be there # features/step_definitions/sitelinks_steps.rb:126
1086 And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1087
1088 @ui_only
1089 Scenario: Click edit button # features/sitelinks.feature:25
1090 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1091 Then Sitelink edit button should not be there # features/step_definitions/sitelinks_steps.rb:96
1092 And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
1093 And Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
1094 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
1095 And Sitelink help field should be there # features/step_definitions/sitelinks_steps.rb:138
1096 And Sitelink siteid input field should be there # features/step_definitions/sitelinks_steps.rb:142
1097 And Sitelink pagename input field should not be there # features/step_definitions/sitelinks_steps.rb:154
1098
1099 @ui_only
1100 Scenario Outline: Type site id # features/sitelinks.feature:36
1101 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1102 And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1103 Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
1104 And Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
1105 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
1106 And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
1107 And Sitelink siteid dropdown should be there # features/step_definitions/sitelinks_steps.rb:165
1108 And Sitelink siteid first suggestion should include <expected_element> # features/step_definitions/sitelinks_steps.rb:177
1109
1110 Examples:
1111 | siteid | expected_element |
1112 | en | English |
1113 | he | עברית |
1114 timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
1115 features/sitelinks.feature:39:in `Then Sitelink pagename input field should be there'
1116
1117 @ui_only
1118 Scenario Outline: Type site id and page name # features/sitelinks.feature:52
1119 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1120 And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1121 And I type <pagename> into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1122 Then Sitelink save button should be there # features/step_definitions/sitelinks_steps.rb:105
1123 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
1124 And Sitelink remove button should be there # features/step_definitions/sitelinks_steps.rb:79
1125 And Sitelink pagename dropdown should be there # features/step_definitions/sitelinks_steps.rb:181
1126 And Sitelink pagename first suggestion should be <expected_element> # features/step_definitions/sitelinks_steps.rb:189
1127
1128 Examples:
1129 | siteid | pagename | expected_element |
1130 | en | Main Page | Main Page |
1131 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1132 features/sitelinks.feature:56:in `Then Sitelink save button should be there'
1133 | he | עמוד ראשי | עמוד ראשי |
1134 timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
1135 ./features/support/modules/sitelink_module.rb:98:in `/^I type (.+) into the (\d+). page input field$/'
1136 features/sitelinks.feature:55:in `And I type <pagename> into the 1. page input field'
1137
1138 @ui_only
1139 Scenario: Type site id and page name and change site id to something senseless # features/sitelinks.feature:68
1140 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1141 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1142 And I type Main Page into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1143 And I type nonexistingwiki into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1144 Then Sitelink save button should be disabled # features/step_definitions/sitelinks_steps.rb:113
1145 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
1146 And Sitelink remove button should be disabled # features/step_definitions/sitelinks_steps.rb:87
1147 And Sitelink pagename input field should not be there # features/step_definitions/sitelinks_steps.rb:154
1148
1149 @ui_only
1150 Scenario Outline: Cancel sitelink during siteid selection # features/sitelinks.feature:79
1151 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1152 And I <cancel> # features/step_definitions/sitelinks_steps.rb:17
1153 Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1154 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1155 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
1156 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1157 And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1158 And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1159
1160 Examples:
1161 | cancel |
1162 | click the sitelink cancel button |
1163 | press the ESC key in the siteid input field |
1164
1165 @ui_only
1166 Scenario Outline: Cancel sitelink during pagename selection # features/sitelinks.feature:95
1167 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1168 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1169 And I <cancel> # features/step_definitions/sitelinks_steps.rb:17
1170 Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1171 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1172 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
1173 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1174 And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1175 And There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1176
1177 Examples:
1178 | cancel |
1179 | click the sitelink cancel button |
1180 | press the ESC key in the pagename input field |
1181
1182 @modify_entity @save_sitelink @smoke
1183 Scenario Outline: Save sitelink # features/sitelinks.feature:112
1184 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1185 | enwiki | Asia |
1186 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1187 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1188 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1189 And I <save> # features/step_definitions/sitelinks_steps.rb:21
1190 Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1191
1192 Examples:
1193 | save |
1194 | click the sitelink save button |
1195 | press the RETURN key in the pagename input field |
1196
1197 @modify_entity @save_sitelink
1198 Scenario Outline: Save sitelink and reload # features/sitelinks.feature:127
1199 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1200 | enwiki | Asia |
1201 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1202 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1203 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1204 And I <save> # features/step_definitions/sitelinks_steps.rb:21
1205 And I reload the page # features/step_definitions/entity_steps.rb:114
1206 Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1207
1208 Examples:
1209 | save |
1210 | click the sitelink save button |
1211 expected: == 1
1212 got: 0 (RSpec::Expectations::ExpectationNotMetError)
1213 features/sitelinks.feature:135:in `Then There should be 1 sitelinks in the list'
1214 | press the RETURN key in the pagename input field |
1215 expected: == 1
1216 got: 0 (RSpec::Expectations::ExpectationNotMetError)
1217 features/sitelinks.feature:135:in `Then There should be 1 sitelinks in the list'
1218
1219 @modify_entity @save_sitelink
1220 Scenario: Edit sitelink # features/sitelinks.feature:143
1221 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1222 | enwiki | Asia |
1223 | enwiki | Europe |
1224 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1225 | en | Asia |
1226 And I reload the page # features/step_definitions/entity_steps.rb:114
1227 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1228 And I type Europe into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1229 timed out after 10 seconds, waiting for {:css=>"div[data-wb-sitelinks-group='wikipedia'] ul li:nth-child(1) span.wikibase-sitelinkview-link input:not(.wikibase-pagesuggester-disabled)", :tag_name=>"input or textarea", :type=>"(any text type)"} to become present (Watir::Wait::TimeoutError)
1230 ./features/support/modules/sitelink_module.rb:98:in `/^I type (.+) into the (\d+). page input field$/'
1231 features/sitelinks.feature:151:in `And I type Europe into the 1. page input field'
1232 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1233 Then There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1234 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1235 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1236 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
1237
1238 @modify_entity @save_sitelink
1239 Scenario Outline: Add sitelink # features/sitelinks.feature:159
1240 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1241 | enwiki | Asia |
1242 | sqwiki | Wikipedia |
1243 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1244 And I type <siteid> into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1245 And I type <pagename> into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1246 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1247 Then Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1248 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1249 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1250 And Sitelink remove button should not be there # features/step_definitions/sitelinks_steps.rb:83
1251 And Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1252 And There should be 1 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1253 And Sitelink language code should include <siteid> # features/step_definitions/sitelinks_steps.rb:197
1254 And Sitelink link text should be <normalized_pagename> # features/step_definitions/sitelinks_steps.rb:201
1255 And Sitelink link should lead to article <normalized_pagename> # features/step_definitions/sitelinks_steps.rb:205
1256
1257 Examples:
1258 | siteid | pagename | normalized_pagename |
1259 | en | Asia | Asia |
1260 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1261 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1262 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1263 features/sitelinks.feature:160:in `Given The following sitelinks do not exist:'
1264 | sq | wikipedia | Wikipedia |
1265 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1266 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1267 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1268 features/sitelinks.feature:160:in `Given The following sitelinks do not exist:'
1269
1270 @modify_entity @save_sitelink
1271 Scenario: Add multiple sitelinks # features/sitelinks.feature:183
1272 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1273 | enwiki | Europe |
1274 | dewiki | Test |
1275 | sqwiki | Wikipedia |
1276 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1277 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1278 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1279 features/sitelinks.feature:184:in `Given The following sitelinks do not exist:'
1280 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1281 | en | Europe |
1282 | de | Test |
1283 | sq | Wikipedia |
1284 Then There should be 3 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1285
1286 @modify_entity @save_sitelink
1287 Scenario: Remove multiple sitelinks # features/sitelinks.feature:195
1288 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1289 | enwiki | Europe |
1290 | dewiki | Test |
1291 | sqwiki | Wikipedia |
1292 A parameter that is required was missing. (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) (param-missing) (MediawikiApi::ApiError)
1293 ./features/step_definitions/entity_steps.rb:104:in `block (2 levels) in <top (required)>'
1294 ./features/step_definitions/entity_steps.rb:103:in `/^The following sitelinks do not exist:$/'
1295 features/sitelinks.feature:196:in `Given The following sitelinks do not exist:'
1296 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1297 | en | Europe |
1298 | de | Test |
1299 | sq | Wikipedia |
1300 And I remove all sitelinks # features/step_definitions/sitelinks_steps.rb:51
1301 And I reload the page # features/step_definitions/entity_steps.rb:114
1302 Then There should be 0 sitelinks in the list # features/step_definitions/sitelinks_steps.rb:134
1303 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1304
1305 @modify_entity @save_sitelink
1306 Scenario: List of sitelinks is complete # features/sitelinks.feature:210
1307 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1308 | enwiki | Europe |
1309 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1310 | en | Europe |
1311 And I mock that the list of sitelinks is complete # features/step_definitions/sitelinks_steps.rb:63
1312 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1313 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1314 features/sitelinks.feature:216:in `And I click the sitelink edit button'
1315 Then Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1316
1317 @save_sitelink
1318 Scenario: Add sitelink to non existent page # features/sitelinks.feature:220
1319 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1320 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1321 And I type xyz_nonexistentarticle_xyz into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1322 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1323 Then An error message should be displayed for sitelink group wikipedia # features/step_definitions/sitelinks_steps.rb:212
1324
1325 @save_sitelink
1326 Scenario: Add new sitelink to already referenced site # features/sitelinks.feature:228
1327 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1328 | enwiki | Asia |
1329 When I add the following sitelinks: # features/step_definitions/sitelinks_steps.rb:55
1330 | en | Asia |
1331 And I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1332 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1333 features/sitelinks.feature:233:in `And I click the sitelink edit button'
1334 And Sitelink cancel button should be there # features/step_definitions/sitelinks_steps.rb:118
1335 And I type en into the 2. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1336 Then Sitelink siteid input field should not be there # features/step_definitions/sitelinks_steps.rb:146
1337 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1338
1339# Wikidata UI tests
1340#
1341# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1342# License:: GNU GPL v2+
1343#
1344# feature definition for item sitelinks tests
1345@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1346Feature: Add badges to sitelinks
1347
1348 Background: # features/sitelinks_badge.feature:11
1349 Given I have at least 2 badges to test # features/step_definitions/badges_steps.rb:1
1350 expected: >= 2
1351 got: 0 (RSpec::Expectations::ExpectationNotMetError)
1352 features/sitelinks_badge.feature:12:in `Given I have at least 2 badges to test'
1353 And I am on an item page # features/step_definitions/entity_steps.rb:17
1354 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1355 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1356
1357 @ui_only
1358 Scenario: Sitelink badge UI is there # features/sitelinks_badge.feature:18
1359 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1360 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1361 Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
1362 And Sitelink badge selector should be there # features/step_definitions/badges_steps.rb:18
1363 And Sitelink empty badge selector should be there # features/step_definitions/badges_steps.rb:32
1364
1365 @ui_only
1366 Scenario: Sitelink badge UI shows all available badges # features/sitelinks_badge.feature:26
1367 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1368 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1369 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1370 Then Sitelink pagename input field should be there # features/step_definitions/sitelinks_steps.rb:150
1371 And Sitelink badge selector menu should be there # features/step_definitions/badges_steps.rb:22
1372 And Sitelink badge selector menu should show available badges # features/step_definitions/badges_steps.rb:26
1373
1374 @ui_only
1375 Scenario: Choose a badge # features/sitelinks_badge.feature:35
1376 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1377 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1378 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1379 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1380 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1381 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1382
1383 @ui_only
1384 Scenario: Choose multiple badges # features/sitelinks_badge.feature:44
1385 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1386 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1387 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1388 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1389 And I click the 2. badge selector id item # features/step_definitions/badges_steps.rb:10
1390 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1391 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1392 And The 2. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1393
1394 @modify_entity @save_sitelink
1395 Scenario: Save a badge # features/sitelinks_badge.feature:55
1396 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1397 | enwiki | Asia |
1398 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1399 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1400 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1401 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1402 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1403 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1404 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1405 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1406 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1407 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1408 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1409
1410 @modify_entity @save_sitelink
1411 Scenario: Save a badge and reload # features/sitelinks_badge.feature:71
1412 Given The following sitelinks do not exist: # features/step_definitions/entity_steps.rb:100
1413 | enwiki | Asia |
1414 When I click the sitelink edit button # features/step_definitions/sitelinks_steps.rb:13
1415 And I type en into the 1. siteid input field # features/step_definitions/sitelinks_steps.rb:43
1416 And I type Asia into the 1. page input field # features/step_definitions/sitelinks_steps.rb:47
1417 And I click the empty badge selector # features/step_definitions/badges_steps.rb:6
1418 And I click the 1. badge selector id item # features/step_definitions/badges_steps.rb:10
1419 And I click the sitelink save button # features/step_definitions/sitelinks_steps.rb:21
1420 And I reload the page # features/step_definitions/entity_steps.rb:114
1421 Then Sitelink empty badge selector should not be there # features/step_definitions/badges_steps.rb:36
1422 And The 1. badge id should be attached to the sitelink # features/step_definitions/badges_steps.rb:14
1423 And Sitelink save button should not be there # features/step_definitions/sitelinks_steps.rb:109
1424 And Sitelink cancel button should not be there # features/step_definitions/sitelinks_steps.rb:122
1425 And Sitelink edit button should be there # features/step_definitions/sitelinks_steps.rb:92
1426
1427# Wikidata UI tests
1428#
1429# Author:: Thiemo Mättig
1430# License:: GNU GPL v2+
1431#
1432# feature definition for the Special:SetLabel page tests
1433@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @special_pages @wikidata.beta.wmflabs.org
1434Feature: Special:SetLabel page
1435
1436 @ui_only
1437 Scenario: Special:SetLabel page has all required elements # features/special_set_label.feature:12
1438 Given I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1439 Then ID input field should be there # features/step_definitions/special_modify_entity_steps.rb:30
1440 And Language input field should be there # features/step_definitions/special_modify_term_steps.rb:10
1441 And Label input field should be there # features/step_definitions/special_set_label_steps.rb:21
1442 And Set label button should be there # features/step_definitions/special_set_label_steps.rb:25
1443
1444 @ui_only
1445 Scenario: Logged in user does not get warning # features/special_set_label.feature:20
1446 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1447 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1448 Then Anonymous edit warning should not be there # features/step_definitions/special_modify_entity_steps.rb:22
1449
1450 @ui_only
1451 Scenario: Anonymous user gets warning # features/special_set_label.feature:26
1452 Given I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1453 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1454 Then Anonymous edit warning should be there # features/step_definitions/special_modify_entity_steps.rb:18
1455
1456 Scenario: Add a label # features/special_set_label.feature:31
1457 Given I have the following empty items: # features/step_definitions/entity_steps.rb:83
1458 | item1 |
1459 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1460 And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
1461 And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1462 And I enter Something into the label input field # features/step_definitions/special_set_label_steps.rb:13
1463 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1464 And I am on the page of item item1 # features/step_definitions/entity_steps.rb:49
1465 Then Something should be displayed as label having the ID of item1 # features/step_definitions/label_steps.rb:90
1466
1467 @smoke
1468 Scenario: Edit an existing label # features/special_set_label.feature:43
1469 Given I have the following items: # features/step_definitions/entity_steps.rb:79
1470 | item1 |
1471 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1472 And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
1473 And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1474 And I enter Something different into the label input field # features/step_definitions/special_set_label_steps.rb:13
1475 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1476 And I am on the page of item item1 # features/step_definitions/entity_steps.rb:49
1477 Then Something different should be displayed as label having the ID of item1 # features/step_definitions/label_steps.rb:90
1478
1479 Scenario: Edit using an invalid language fails # features/special_set_label.feature:54
1480 Given I have the following items: # features/step_definitions/entity_steps.rb:79
1481 | item1 |
1482 And I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1483 And I enter the ID of item item1 into the ID input field # features/step_definitions/special_modify_entity_steps.rb:14
1484 And I enter Something invalid into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1485 And I enter Something new into the label input field # features/step_definitions/special_set_label_steps.rb:13
1486 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1487 Then An error message should be displayed on the special page # features/step_definitions/special_modify_entity_steps.rb:26
1488
1489 Scenario: Edit using an invalid ID fails # features/special_set_label.feature:64
1490 When I am on the Special:SetLabel page # features/step_definitions/special_set_label_steps.rb:9
1491 And I enter something invalid in the ID input field # features/step_definitions/special_modify_entity_steps.rb:10
1492 And I enter en into the language input field # features/step_definitions/special_modify_term_steps.rb:14
1493 And I enter Something new into the label input field # features/step_definitions/special_set_label_steps.rb:13
1494 And I press the set label button # features/step_definitions/special_set_label_steps.rb:17
1495 Then An error message should be displayed on the special page # features/step_definitions/special_modify_entity_steps.rb:26
1496
1497# Wikidata UI tests
1498#
1499# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1500# License:: GNU GPL v2+
1501#
1502# feature definition for statements tests
1503@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1504Feature: Creating statements
1505
1506 Background: # features/statement.feature:11
1507 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1508 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1509 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1510
1511 @ui_only
1512 Scenario: Statement UI has all required elements # features/statement.feature:17
1513 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1514 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1515 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1516 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1517 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1518 And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
1519 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1520
1521 @ui_only
1522 Scenario: Click the add button # features/statement.feature:27
1523 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1524 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1525 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1526 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1527 And Statement help field should be there # features/step_definitions/statement_steps.rb:165
1528 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1529 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1530 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1531 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1532
1533 @ui_only
1534 Scenario Outline: Cancel statement # features/statement.feature:39
1535 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1536 And I <cancel> # features/step_definitions/statement_steps.rb:27
1537 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1538 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1539 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1540 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1541 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1542 And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
1543 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1544
1545 Examples:
1546 | cancel |
1547 | click the statement cancel button |
1548 | press the ESC key in the claim entity selector input field |
1549 timed out after 10 seconds, Element still visible after 10 seconds (Watir::Wait::TimeoutError)
1550 features/statement.feature:43:in `And Statement cancel button should not be there'
1551
1552 @repo_login @ui_only
1553 Scenario: Select a property # features/statement.feature:56
1554 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1555 | stringprop | string |
1556 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1557 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1558 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1559 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1560 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1561 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1562 And Claim value input element should be there # features/step_definitions/statement_steps.rb:208
1563 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1564 And Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
1565
1566 @repo_login @smoke @ui_only
1567 Scenario: Select a property and enter a statement value # features/statement.feature:70
1568 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1569 | stringprop | string |
1570 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1571 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1572 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1573 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1574 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1575 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1576 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1577 And Claim value input element should be there # features/step_definitions/statement_steps.rb:208
1578 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1579 And Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
1580
1581 @repo_login @ui_only
1582 Scenario Outline: Cancel statement after selecting a property # features/statement.feature:85
1583 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1584 | stringprop | string |
1585 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1586 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1587 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1588 And I <cancel> # features/step_definitions/statement_steps.rb:27
1589 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1590 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1591 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1592 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1593 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1594 And Rank selector for claim 1 in group 1 should not be there # features/step_definitions/rank_selector_steps.rb:17
1595 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1596
1597 Examples:
1598 | cancel |
1599 | click the statement cancel button |
1600 | press the ESC key in the claim value input field |
1601
1602 @repo_login @ui_only
1603 Scenario: Select a property, enter a statement value and clear the property # features/statement.feature:106
1604 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1605 | stringprop | string |
1606 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1607 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
1608 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1609 And I enter invalid in the claim property input field # features/step_definitions/statement_steps.rb:53
1610 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1611 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1612 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
1613 And Claim entity selector input element should be there # features/step_definitions/entity_selector_steps.rb:25
1614 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1615 And Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
1616 And Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
1617
1618# Wikidata UI tests
1619#
1620# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1621# License:: GNU GPL v2+
1622#
1623# feature definition for geo type statements tests
1624@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1625Feature: Using geo properties in statements
1626
1627 Background: # features/statements_geo.feature:11
1628 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1629 | geoprop | globe-coordinate |
1630 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1631
1632 @ui_only
1633 Scenario: Geo UI should work properly # features/statements_geo.feature:17
1634 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1635 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1636 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1637 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1638 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1639 And I enter 1,1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1640 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
1641 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1642 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1643 And InputExtender preview should be there # features/step_definitions/statement_steps.rb:280
1644 And Geo precision chooser should be there # features/step_definitions/statement_steps.rb:288
1645
1646 @ui_only
1647 Scenario Outline: Check geo UI for invalid values # features/statements_geo.feature:31
1648 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1649 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1650 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1651 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1652 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1653 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1654 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1655 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1656
1657 Examples:
1658 | value |
1659 | astring |
1660 | 1 11 199 9 |
1661 | 1 |
1662 | 1:1 |
1663
1664 @ui_only
1665 Scenario Outline: Geo parser in the preview and precision detection should work properly # features/statements_geo.feature:49
1666 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1667 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1668 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1669 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1670 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1671 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1672 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
1673 Then <preview> should be displayed in the InputExtender preview # features/step_definitions/statement_steps.rb:260
1674 And <precision> should be the geo precision setting # features/step_definitions/statement_steps.rb:292
1675 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
1676 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1677
1678 Examples:
1679 | value | preview | precision |
1680 | 1 1 | 1°N, 1°E | ±1° |
1681 | 1 S 1 W | 1°S, 1°W | ±1° |
1682 | 52°29'53"N, 13°22'51"E | 52°29'53"N, 13°22'51"E | to an arcsecond |
1683 | 52°29'N, 13°22'E | 52°29'N, 13°22'E | to an arcminute |
1684 | 42.1538, 8.5731 | 42°9'13.7"N, 8°34'23.2"E | ±0.0001° |
1685 | 42° 09.231' N 008° 34.386' E | 42°9'13.86"N, 8°34'23.16"E | to 1/100 of an arcsecond |
1686
1687 @repo_login @modify_entity
1688 Scenario: Adding a statement of type geo # features/statements_geo.feature:72
1689 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1690 And I am on an item page # features/step_definitions/entity_steps.rb:17
1691 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1692 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1693 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1694 And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field # features/step_definitions/statement_steps.rb:61
1695 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1696 Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E # features/step_definitions/statement_steps.rb:228
1697 And Statement name of group 1 should be the label of geoprop # features/step_definitions/statement_steps.rb:224
1698 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1699 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1700 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1701
1702 @repo_login @modify_entity
1703 Scenario: Adding a statement of type geo and reload page # features/statements_geo.feature:88
1704 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1705 And I am on an item page # features/step_definitions/entity_steps.rb:17
1706 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1707 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1708 And I select the claim property geoprop # features/step_definitions/statement_steps.rb:39
1709 And I enter 52°29'53.9"N, 13°22'51.8"E in the claim value input field # features/step_definitions/statement_steps.rb:61
1710 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1711 And I reload the page # features/step_definitions/entity_steps.rb:114
1712 Then Statement string value of claim 1 in group 1 should be 52°29'53.9"N, 13°22'51.8"E # features/step_definitions/statement_steps.rb:228
1713 And Statement name of group 1 should be the label of geoprop # features/step_definitions/statement_steps.rb:224
1714 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1715 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1716 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1717
1718# Wikidata UI tests
1719#
1720# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1721# License:: GNU GPL v2+
1722#
1723# feature definition for item type statements tests
1724@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1725Feature: Creating statements of type item
1726
1727 Background: # features/statements_item.feature:11
1728 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1729 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1730 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1731
1732 @modify_entity @repo_login
1733 Scenario Outline: Adding a statement of type item # features/statements_item.feature:17
1734 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1735 | itemprop | wikibase-item |
1736 Given I have the following items: # features/step_definitions/entity_steps.rb:79
1737 | item1 |
1738 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1739 And I select the claim property itemprop # features/step_definitions/statement_steps.rb:39
1740 And I enter the label of item <item> as claim value # features/step_definitions/statement_steps.rb:102
1741 And I <save> # features/step_definitions/statement_steps.rb:31
1742 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
1743 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1744 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1745 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
1746 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
1747 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1748 And Statement name of group 1 should be the label of itemprop # features/step_definitions/statement_steps.rb:224
1749 And Statement value of claim 1 in group 1 should be the label of item <item> # features/step_definitions/statement_steps.rb:232
1750
1751 Examples:
1752 | item | save |
1753 | item1 | click the statement save button |
1754
1755 @ui_only @repo_login
1756 Scenario: Select a property, use entity selector # features/statements_item.feature:40
1757 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1758 | itemprop | wikibase-item |
1759 And I have 3 items beginning with "q" # features/step_definitions/entity_steps.rb:34
1760 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1761 And I select the claim property itemprop # features/step_definitions/statement_steps.rb:39
1762 And I enter q in the claim value input field # features/step_definitions/statement_steps.rb:61
1763 And I press the ARROWDOWN key in the claim value input field # features/step_definitions/statement_steps.rb:122
1764 And I press the ARROWDOWN key in the claim value input field # features/step_definitions/statement_steps.rb:122
1765 And I press the RETURN key in the claim value input field # features/step_definitions/statement_steps.rb:130
1766 And I memorize the value of the the claim value input field # features/step_definitions/statement_steps.rb:153
1767 And I press the RETURN key in the claim value input field # features/step_definitions/statement_steps.rb:130
1768 Then Statement value of claim 1 in group 1 should be what I memorized # features/step_definitions/statement_steps.rb:236
1769
1770# Wikidata UI tests
1771#
1772# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1773# License:: GNU GPL v2+
1774#
1775# feature definition for monolingual type statements tests
1776@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1777Feature: Using monolingual properties in statements
1778
1779 Background: # features/statements_monolingual.feature:11
1780 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1781 | monolingprop | monolingualtext |
1782 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1783
1784 @ui_only
1785 Scenario: Monolingual UI should work properly # features/statements_monolingual.feature:17
1786 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1787 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1788 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1789 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1790 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1791 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1792 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1793 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1794 And InputExtender input should be there # features/step_definitions/statement_steps.rb:284
1795
1796 @ui_only
1797 Scenario: Check monolingual for invalid language values # features/statements_monolingual.feature:29
1798 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1799 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1800 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1801 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1802 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1803 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1804 And I enter definitelynotalanguage in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1805 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1806 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1807 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1808
1809 @repo_login @modify_entity
1810 Scenario Outline: Adding a statement of type monolingual # features/statements_monolingual.feature:42
1811 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1812 And I am on an item page # features/step_definitions/entity_steps.rb:17
1813 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1814 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1815 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1816 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1817 And I enter <language> in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1818 And I click the InputExtender dropdown first element # features/step_definitions/statement_steps.rb:89
1819 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1820 Then Statement string value of claim 1 in group 1 should be something (<language>) # features/step_definitions/statement_steps.rb:228
1821 And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
1822 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1823 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1824 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1825
1826 Examples:
1827 | language |
1828 | English |
1829 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1830 features/statements_monolingual.feature:50:in `And I click the InputExtender dropdown first element'
1831 | German |
1832 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1833 features/statements_monolingual.feature:50:in `And I click the InputExtender dropdown first element'
1834
1835 Scenario Outline: Adding a statement of type monolingual and use keyboard to select language # features/statements_monolingual.feature:63
1836 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1837 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1838 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1839 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1840 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1841 And I enter <language> in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1842 And I press the ARROWDOWN key in the InputExtender input field # features/step_definitions/statement_steps.rb:77
1843 And I press the RETURN key in the InputExtender input field # features/step_definitions/statement_steps.rb:81
1844 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1845 Then Statement string value of claim 1 in group 1 should be something (<language>) # features/step_definitions/statement_steps.rb:228
1846 And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
1847 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1848 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1849 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1850
1851 Examples:
1852 | language |
1853 | English |
1854
1855 expected: "something (English)"
1856 got: ""
1857
1858 (compared using ==)
1859 (RSpec::Expectations::ExpectationNotMetError)
1860 features/statements_monolingual.feature:73:in `Then Statement string value of claim 1 in group 1 should be something (<language>)'
1861 | German |
1862
1863 expected: "something (German)"
1864 got: ""
1865
1866 (compared using ==)
1867 (RSpec::Expectations::ExpectationNotMetError)
1868 features/statements_monolingual.feature:73:in `Then Statement string value of claim 1 in group 1 should be something (<language>)'
1869
1870 @repo_login @modify_entity
1871 Scenario: Adding a statement of type monolingual and reload page # features/statements_monolingual.feature:85
1872 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1873 And I am on an item page # features/step_definitions/entity_steps.rb:17
1874 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1875 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1876 And I select the claim property monolingprop # features/step_definitions/statement_steps.rb:39
1877 And I enter something in the claim value input field # features/step_definitions/statement_steps.rb:61
1878 And I enter English in the InputExtender input field # features/step_definitions/statement_steps.rb:69
1879 And I click the InputExtender dropdown first element # features/step_definitions/statement_steps.rb:89
1880 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1881 features/statements_monolingual.feature:93:in `And I click the InputExtender dropdown first element'
1882 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1883 And I reload the page # features/step_definitions/entity_steps.rb:114
1884 Then Statement string value of claim 1 in group 1 should be something (English) # features/step_definitions/statement_steps.rb:228
1885 And Statement name of group 1 should be the label of monolingprop # features/step_definitions/statement_steps.rb:224
1886 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1887 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1888 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1889
1890# Wikidata UI tests
1891#
1892# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
1893# License:: GNU GPL v2+
1894#
1895# feature definition for quantity type statements tests
1896@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1897Feature: Using quantity properties in statements
1898
1899 Background: # features/statements_quantity.feature:11
1900 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1901 | quantprop | quantity |
1902 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
1903
1904 @ui_only
1905 Scenario: Quantity UI should work properly # features/statements_quantity.feature:17
1906 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1907 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1908 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1909 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1910 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1911 And I enter 1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1912 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
1913 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1914 features/statements_quantity.feature:24:in `Then Statement save button should be there'
1915 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1916
1917 @ui_only
1918 Scenario Outline: Check quantity UI for invalid values # features/statements_quantity.feature:28
1919 Given I am on an item page # features/step_definitions/entity_steps.rb:17
1920 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1921 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1922 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1923 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1924 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
1925 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1926 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
1927
1928 Examples:
1929 | value |
1930 | astring |
1931 | 1:1 |
1932
1933 @repo_login @modify_entity
1934 Scenario: Quantity parser and saving should work properly # features/statements_quantity.feature:44
1935 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1936 And I am on an item page # features/step_definitions/entity_steps.rb:17
1937 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1938 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1939 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1940 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1941 And I enter 1+-0 in the claim value input field # features/step_definitions/statement_steps.rb:61
1942 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1943 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1944 ./features/step_definitions/statement_steps.rb:33:in `block (2 levels) in <top (required)>'
1945 features/statements_quantity.feature:52:in `And I click the statement save button'
1946 Then Statement string value of claim 1 in group 1 should be 1 # features/step_definitions/statement_steps.rb:228
1947 And Statement name of group 1 should be the label of quantprop # features/step_definitions/statement_steps.rb:224
1948 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1949 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1950 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1951
1952 @repo_login @modify_entity
1953 Scenario: Adding a statement of type quantity and reload page # features/statements_quantity.feature:60
1954 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
1955 And I am on an item page # features/step_definitions/entity_steps.rb:17
1956 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1957 When I click the statement add button # features/step_definitions/statement_steps.rb:19
1958 And I select the claim property quantprop # features/step_definitions/statement_steps.rb:39
1959 And I enter 2.1+-0.1 in the claim value input field # features/step_definitions/statement_steps.rb:61
1960 And I click the statement save button # features/step_definitions/statement_steps.rb:31
1961 timed out after 10 seconds, Element was not visible in 10 seconds (Watir::Wait::TimeoutError)
1962 ./features/step_definitions/statement_steps.rb:33:in `block (2 levels) in <top (required)>'
1963 features/statements_quantity.feature:67:in `And I click the statement save button'
1964 And I reload the page # features/step_definitions/entity_steps.rb:114
1965 Then Statement string value of claim 1 in group 1 should be 2.1±0.1 # features/step_definitions/statement_steps.rb:228
1966 And Statement name of group 1 should be the label of quantprop # features/step_definitions/statement_steps.rb:224
1967 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
1968 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
1969 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
1970
1971# Wikidata UI tests
1972#
1973# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
1974# License:: GNU GPL v2+
1975#
1976# feature definition for statement ranks tests
1977@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
1978Feature: Setting ranks of statements
1979
1980 Background: # features/statements_rank.feature:11
1981 Given I have an item to test # features/step_definitions/entity_steps.rb:22
1982 And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
1983 | stringprop | string |
1984 And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
1985 | stringprop | rank test |
1986 And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
1987 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
1988 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
1989
1990 @ui_only
1991 Scenario: Check indicated rank # features/statements_rank.feature:22
1992 Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
1993 And Indicated rank for claim 1 in group 1 should be normal # features/step_definitions/rank_selector_steps.rb:48
1994
1995 @ui_only
1996 Scenario: Click the rank selector # features/statements_rank.feature:27
1997 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
1998 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
1999 Then Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
2000 And Rank selector menu should be visible # features/step_definitions/rank_selector_steps.rb:32
2001 And Rank selector item for normal rank should be visible # features/step_definitions/rank_selector_steps.rb:40
2002 And Rank selector item for preferred rank should be visible # features/step_definitions/rank_selector_steps.rb:40
2003 And Rank selector item for deprecated rank should be visible # features/step_definitions/rank_selector_steps.rb:40
2004 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
2005
2006 @ui_only
2007 Scenario: Change the rank # features/statements_rank.feature:38
2008 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2009 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
2010 And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
2011 Then Rank selector for claim 1 in group 1 should be there # features/step_definitions/rank_selector_steps.rb:24
2012 And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
2013 And Rank selector item for normal rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
2014 And Rank selector item for preferred rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
2015 And Rank selector item for deprecated rank should not be visible # features/step_definitions/rank_selector_steps.rb:44
2016 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
2017
2018 @modify_entity
2019 Scenario: Change the rank and save # features/statements_rank.feature:50
2020 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2021 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
2022 And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
2023 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2024 Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
2025 And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
2026 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2027 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2028 And Indicated rank for claim 1 in group 1 should be preferred # features/step_definitions/rank_selector_steps.rb:48
2029 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2030 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2031
2032 @modify_entity
2033 Scenario: Change the rank, save and reload # features/statements_rank.feature:64
2034 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2035 And I click the rank selector of claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:9
2036 And I select preferred rank for claim 1 in group 1 # features/step_definitions/rank_selector_steps.rb:13
2037 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2038 And I reload the page # features/step_definitions/entity_steps.rb:114
2039 Then Rank selector for claim 1 in group 1 should be disabled # features/step_definitions/rank_selector_steps.rb:28
2040 And Rank selector menu should not be visible # features/step_definitions/rank_selector_steps.rb:36
2041 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2042 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2043 And Indicated rank for claim 1 in group 1 should be preferred # features/step_definitions/rank_selector_steps.rb:48
2044 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2045 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2046
2047# Wikidata UI tests
2048#
2049# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
2050# License:: GNU GPL v2+
2051#
2052# feature definition for statement snaktype tests
2053@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
2054Feature: Setting snaktypes of statements
2055
2056 Background: # features/statements_snaktype.feature:11
2057 Given I have an item to test # features/step_definitions/entity_steps.rb:22
2058 And I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2059 | stringprop | string |
2060 And I have statements with the following properties and values: # features/step_definitions/statement_steps.rb:9
2061 | stringprop | snaktype test |
2062 And I am on the page of the item to test # features/step_definitions/entity_steps.rb:45
2063 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2064 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2065
2066 @ui_only
2067 Scenario: Click the snaktype selector # features/statements_snaktype.feature:22
2068 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2069 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
2070 Then Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
2071 And Snaktype selector menu should be visible # features/step_definitions/snaktype_selector_steps.rb:25
2072 And Snaktype selector item for novalue snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
2073 And Snaktype selector item for somevalue snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
2074 And Snaktype selector item for value snaktype should be visible # features/step_definitions/snaktype_selector_steps.rb:33
2075 And Statement save button should be disabled # features/step_definitions/statement_steps.rb:193
2076
2077 @ui_only
2078 Scenario Outline: Change the snaktype # features/statements_snaktype.feature:33
2079 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2080 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
2081 And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
2082 Then Snaktype selector for claim 1 in group 1 should be there # features/step_definitions/snaktype_selector_steps.rb:21
2083 And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
2084 And Snaktype selector item for novalue snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
2085 And Snaktype selector item for somevalue snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
2086 And Snaktype selector item for value snaktype should not be visible # features/step_definitions/snaktype_selector_steps.rb:37
2087 And Statement save button should be there # features/step_definitions/statement_steps.rb:185
2088 And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
2089
2090 Examples:
2091 | snaktype |
2092 | novalue |
2093 | somevalue |
2094
2095 @modify_entity
2096 Scenario Outline: Change the snaktype and save # features/statements_snaktype.feature:51
2097 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2098 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
2099 And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
2100 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2101 Then Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
2102 And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
2103 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2104 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2105 And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
2106 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2107 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2108
2109 Examples:
2110 | snaktype |
2111 | novalue |
2112 | somevalue |
2113
2114 @modify_entity
2115 Scenario Outline: Change the snaktype, save and reload # features/statements_snaktype.feature:70
2116 When I edit claim 1 in group 1 # features/step_definitions/statement_steps.rb:146
2117 And I click the snaktype selector of claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:9
2118 And I select <snaktype> snaktype for claim 1 in group 1 # features/step_definitions/snaktype_selector_steps.rb:13
2119 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2120 And I reload the page # features/step_definitions/entity_steps.rb:114
2121 Then Snaktype selector for claim 1 in group 1 should not be there # features/step_definitions/snaktype_selector_steps.rb:17
2122 And Snaktype selector menu should not be visible # features/step_definitions/snaktype_selector_steps.rb:29
2123 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2124 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2125 And Snaktype <snaktype> should be shown for claim 1 in group 1 # features/step_definitions/statement_steps.rb:240
2126 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2127 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2128
2129 Examples:
2130 | snaktype |
2131 | novalue |
2132 | somevalue |
2133
2134# Wikidata UI tests
2135#
2136# Author:: Tobias Gritschacher (tobias.gritschacher@wikimedia.de)
2137# License:: GNU GPL v2+
2138#
2139# feature definition for string type statements tests
2140@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
2141Feature: Creating statements of type string
2142
2143 Background: # features/statements_string.feature:11
2144 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2145 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2146 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2147
2148 @repo_login @modify_entity
2149 Scenario Outline: Adding a statement of type string # features/statements_string.feature:17
2150 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2151 | stringprop | string |
2152 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2153 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
2154 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2155 And I <save> # features/step_definitions/statement_steps.rb:130
2156 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
2157 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2158 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2159 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
2160 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2161 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2162 And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
2163 And Statement string value of claim 1 in group 1 should be <value> # features/step_definitions/statement_steps.rb:228
2164
2165 Examples:
2166 | value | save |
2167 | it's a string | press the RETURN key in the claim value input field |
2168 | <script>$('body').empty();</script> | click the statement save button |
2169
2170 @modify_entity @repo_login
2171 Scenario: Adding a statement of type string and reload page # features/statements_string.feature:39
2172 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2173 | stringprop | string |
2174 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2175 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
2176 And I enter it's a string in the claim value input field # features/step_definitions/statement_steps.rb:61
2177 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2178 And I reload the page # features/step_definitions/entity_steps.rb:114
2179 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
2180 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2181 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2182 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
2183 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2184 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2185 And Statement name of group 1 should be the label of stringprop # features/step_definitions/statement_steps.rb:224
2186 And Statement string value of claim 1 in group 1 should be it's a string # features/step_definitions/statement_steps.rb:228
2187
2188 @modify_entity @repo_logi
2189 Scenario: Adding a statement of type string with a too long string # features/statements_string.feature:57
2190 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2191 | stringprop | string |
2192 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2193 And I select the claim property stringprop # features/step_definitions/statement_steps.rb:39
2194 And I enter a too long string as claim value # features/step_definitions/statement_steps.rb:106
2195 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2196 Then An error message should be displayed # features/step_definitions/entity_steps.rb:110
2197
2198# Wikidata UI tests
2199#
2200# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
2201# License:: GNU GPL v2+
2202#
2203# feature definition for time type statements tests
2204@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
2205Feature: Using time properties in statements
2206
2207 Background: # features/statements_time.feature:11
2208 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2209 | timeprop | time |
2210 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
2211
2212 Scenario: Time UI should work properly # features/statements_time.feature:16
2213 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2214 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2215 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2216 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2217 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2218 And I enter 1 in the claim value input field # features/step_definitions/statement_steps.rb:61
2219 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
2220 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
2221 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
2222 And InputExtender preview should be there # features/step_definitions/statement_steps.rb:280
2223 And Time precision chooser should be there # features/step_definitions/statement_steps.rb:272
2224 And Time calendar chooser should be there # features/step_definitions/statement_steps.rb:276
2225
2226 Scenario Outline: Check UI for invalid values # features/statements_time.feature:30
2227 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2228 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2229 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2230 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2231 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2232 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2233 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2234 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
2235
2236 Examples:
2237 | value |
2238 | astring |
2239 | 1 11 199 9 |
2240 | 1 AC |
2241 | 32.12.2015 |
2242
2243 # | 1.9.1999 12:12 | TODO: currently disabled see as well T102930
2244 Scenario Outline: Time parser in the preview and precision detection should work properly # features/statements_time.feature:48
2245 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2246 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2247 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2248 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2249 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2250 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2251 And I click the InputExtender toggler link # features/step_definitions/statement_steps.rb:256
2252 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
2253 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
2254 And <preview> should be displayed in the InputExtender preview # features/step_definitions/statement_steps.rb:260
2255 And <calendar> should be the time calendar setting # features/step_definitions/statement_steps.rb:268
2256 And <precision> should be the time precision setting # features/step_definitions/statement_steps.rb:264
2257
2258 Examples:
2259 | value | preview | calendar | precision |
2260 | 1 | 1 | Julian | year |
2261 | 1 1 | January 1 | Julian | month |
2262 | 1 1 1999 | 1 January 1999 | Gregorian | day |
2263 | 12.11.1981 | 12 November 1981 | Gregorian | day |
2264 | 1 bc | 1 BCE | Julian | year |
2265 | 1 b.c. | 1 BCE | Julian | year |
2266 | 1 ad | 1 | Julian | year |
2267 | 1 ce | 1 | Julian | year |
2268 | 10000 | 10000 years CE | Gregorian | 10,000 years |
2269 | 100000 | 100000 years CE | Gregorian | 100,000 years |
2270 | 1000000 BC | 1 million years BCE | Julian | million years |
2271 | 10000000 | 10 million years CE | Gregorian | ten million years |
2272 | 100000000 | 100 million years CE | Gregorian | hundred million years |
2273 | 1000000000 BCE | 1 billion years BCE | Julian | billion years |
2274
2275 @repo_login @modify_entity
2276 Scenario Outline: Adding a statement of type time # features/statements_time.feature:80
2277 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2278 And I am on an item page # features/step_definitions/entity_steps.rb:17
2279 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2280 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2281 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2282 And I enter 14.05.1985 in the claim value input field # features/step_definitions/statement_steps.rb:61
2283 And I <save> # features/step_definitions/statement_steps.rb:31
2284 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2285 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2286 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2287 And Statement name of group 1 should be the label of timeprop # features/step_definitions/statement_steps.rb:224
2288 And Statement string value of claim 1 in group 1 should be 14 May 1985 # features/step_definitions/statement_steps.rb:228
2289
2290 Examples:
2291 | save |
2292 | click the statement save button |
2293 | press the RETURN key in the claim value input field |
2294
2295 @repo_login @modify_entity
2296 Scenario: Adding a statement of type time and reload page # features/statements_time.feature:100
2297 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2298 And I am on an item page # features/step_definitions/entity_steps.rb:17
2299 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2300 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2301 And I select the claim property timeprop # features/step_definitions/statement_steps.rb:39
2302 And I enter 14.05.1985 in the claim value input field # features/step_definitions/statement_steps.rb:61
2303 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2304 And I reload the page # features/step_definitions/entity_steps.rb:114
2305 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2306 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2307 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2308 And Statement name of group 1 should be the label of timeprop # features/step_definitions/statement_steps.rb:224
2309 And Statement string value of claim 1 in group 1 should be 14 May 1985 # features/step_definitions/statement_steps.rb:228
2310
2311# Wikidata UI tests
2312#
2313# Author:: Christoph Fischer (christoph.fischer@wikimedia.de)
2314# License:: GNU GPL v2+
2315#
2316# feature definition for url type statements tests
2317@chrome @firefox @internet_explorer_10 @internet_explorer_11 @local_config @wikidata.beta.wmflabs.org
2318Feature: Using url properties in statements
2319
2320 Background: # features/statements_url.feature:11
2321 Given I have the following properties with datatype: # features/step_definitions/entity_steps.rb:75
2322 | urlprop | url |
2323 And I am not logged in to the repo # features/step_definitions/entity_steps.rb:13
2324
2325 @repo_login
2326 Scenario Outline: Check UI for invalid values # features/statements_url.feature:17
2327 Given I am on an item page # features/step_definitions/entity_steps.rb:17
2328 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2329 And Anonymous edit warnings are disabled # features/step_definitions/entity_steps.rb:91
2330 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2331 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2332 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2333 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2334 Then Statement save button should be there # features/step_definitions/statement_steps.rb:185
2335 And Statement cancel button should be there # features/step_definitions/statement_steps.rb:200
2336 And An error message should be displayed # features/step_definitions/entity_steps.rb:110
2337
2338 Examples:
2339 | value |
2340 | this is no url |
2341 | missing.http.org |
2342
2343 @repo_login @modify_entity
2344 Scenario Outline: Adding a statement of type url # features/statements_url.feature:35
2345 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2346 And I am on an item page # features/step_definitions/entity_steps.rb:17
2347 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2348 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2349 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2350 And I enter http://wikidata.org/ in the claim value input field # features/step_definitions/statement_steps.rb:61
2351 And I <save> # features/step_definitions/statement_steps.rb:130
2352 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
2353 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2354 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2355 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
2356 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2357 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2358 And Statement link text of claim 1 in group 1 should be http://wikidata.org/ # features/step_definitions/statement_steps.rb:248
2359
2360 Examples:
2361 | save |
2362 | press the RETURN key in the claim value input field |
2363 | click the statement save button |
2364
2365 @repo_login @modify_entity
2366 Scenario Outline: Save a statement of type url and check the output # features/statements_url.feature:57
2367 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2368 And I am on an item page # features/step_definitions/entity_steps.rb:17
2369 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2370 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2371 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2372 And I enter <value> in the claim value input field # features/step_definitions/statement_steps.rb:61
2373 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2374 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2375 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2376 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2377 And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
2378 And Statement link element of claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:244
2379 And Statement link text of claim 1 in group 1 should be <value> # features/step_definitions/statement_steps.rb:248
2380
2381 Examples:
2382 | value |
2383 | ftp://ftp-stud.hs-esslingen.de/pub |
2384 | irc://irc.freenode.net/ |
2385 | mailto:mail@example.com |
2386 | http://عربي.امارات/en/ |
2387
2388 @repo_login @modify_entity
2389 Scenario: Save a statement of type url and check the link href # features/statements_url.feature:80
2390 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2391 And I am on an item page # features/step_definitions/entity_steps.rb:17
2392 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2393 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2394 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2395 And I enter http://www.wikimedia.de in the claim value input field # features/step_definitions/statement_steps.rb:61
2396 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2397 Then Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2398 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2399 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2400 And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
2401 And Statement link element of claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:244
2402 And Statement link text of claim 1 in group 1 should be http://www.wikimedia.de # features/step_definitions/statement_steps.rb:248
2403 And Statement link url of claim 1 in group 1 should be http://www.wikimedia.de/ # features/step_definitions/statement_steps.rb:252
2404
2405 @repo_login @modify_entity
2406 Scenario: Adding a statement of type url and reload page # features/statements_url.feature:97
2407 Given I am logged in to the repo # features/step_definitions/entity_steps.rb:9
2408 And I am on an item page # features/step_definitions/entity_steps.rb:17
2409 And The copyright warning has been dismissed # features/step_definitions/entity_steps.rb:87
2410 When I click the statement add button # features/step_definitions/statement_steps.rb:19
2411 And I select the claim property urlprop # features/step_definitions/statement_steps.rb:39
2412 And I enter http://wikidata.org/ in the claim value input field # features/step_definitions/statement_steps.rb:61
2413 And I click the statement save button # features/step_definitions/statement_steps.rb:31
2414 And I reload the page # features/step_definitions/entity_steps.rb:114
2415 Then Statement add button should be there # features/step_definitions/statement_steps.rb:169
2416 And Statement cancel button should not be there # features/step_definitions/statement_steps.rb:204
2417 And Statement save button should not be there # features/step_definitions/statement_steps.rb:189
2418 And Claim entity selector input element should not be there # features/step_definitions/entity_selector_steps.rb:29
2419 And Claim value input element should not be there # features/step_definitions/statement_steps.rb:212
2420 And Statement edit button for claim 1 in group 1 should be there # features/step_definitions/statement_steps.rb:177
2421 And Statement name of group 1 should be the label of urlprop # features/step_definitions/statement_steps.rb:224
2422 And Statement link text of claim 1 in group 1 should be http://wikidata.org/ # features/step_definitions/statement_steps.rb:248
2423
2424Failing Scenarios:
2425cucumber features/authority_control_gadget.feature:11 # Scenario: Check links created by gadget
2426cucumber features/authority_control_gadget.feature:11 # Scenario: Check links created by gadget
2427cucumber features/description.feature:78 # Scenario: Description with a too long value
2428cucumber features/item_smoke.feature:11 # Scenario: Check UI elements
2429cucumber features/item_smoke.feature:11 # Scenario: Check UI elements
2430cucumber features/item_smoke.feature:46 # Scenario: Click UI elements
2431cucumber features/item_smoke.feature:46 # Scenario: Click UI elements
2432cucumber features/performance_test.feature:13 # Scenario: Loading a huge entity
2433cucumber features/property_smoke.feature:12 # Scenario: Check UI elements
2434cucumber features/property_smoke.feature:12 # Scenario: Check UI elements
2435cucumber features/property_smoke.feature:41 # Scenario: Click UI elements
2436cucumber features/property_smoke.feature:41 # Scenario: Click UI elements
2437cucumber features/property_smoke.feature:58 # Scenario: Click statement add button
2438cucumber features/sitelinks.feature:36 # Scenario: Type site id
2439cucumber features/sitelinks.feature:52