Commit 2994d5ec94187e34f021785ed20ebb5e4c4fa33b
Committed by
Gust
1 parent
83bf4162
Exists in
master
and in
5 other branches
verify_tests: Fix selenium tests of software registration.
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
1 changed file
with
8 additions
and
390 deletions
Show diff stats
features/software_registration.feature
... | ... | @@ -11,113 +11,6 @@ Feature: software registration |
11 | 11 | And I check "MpogSoftwarePlugin" |
12 | 12 | And I press "Save changes" |
13 | 13 | |
14 | - @selenium | |
15 | - Scenario: Do not show error message if all required fields are correctly filled | |
16 | - Given I go to admin_user's control panel | |
17 | - And I follow "Manage my groups" | |
18 | - And I follow "Create a new software" | |
19 | - And I fill in "community_name" with "test name" | |
20 | - And I fill in "language__version" with "2.0.0" | |
21 | - And I fill in "language__operating_system" with "Linux" | |
22 | - And I fill in "database__version" with "3.0" | |
23 | - And I fill in "database__operating_system" with "GNU" | |
24 | - And I fill in "operating_system__version" with "3.0" | |
25 | - And I fill in "software_info_operating_platform" with "test operating platform" | |
26 | - And fill in "software_info_acronym" with "SFTW" | |
27 | - And I press "Create" | |
28 | - Then I should see "Manage my groups" | |
29 | - | |
30 | - Scenario: Show operating_platform errors if this field is blank | |
31 | - Given I go to admin_user's control panel | |
32 | - And I follow "Manage my groups" | |
33 | - And I follow "Create a new software" | |
34 | - And fill in "community_name" with "test" | |
35 | - And fill in "language__version" with "2.0.0" | |
36 | - And fill in "language__operating_system" with "Linux" | |
37 | - And I fill in "database__version" with "3.0" | |
38 | - And I fill in "database__operating_system" with "GNU" | |
39 | - And fill in "software_info_acronym" with "SFTW" | |
40 | - And I press "Create" | |
41 | - Then I should see "Operating platform can't be blank" | |
42 | - | |
43 | - Scenario: Do not show operating_platform errors if this field is not blank | |
44 | - Given I go to admin_user's control panel | |
45 | - And I follow "Manage my groups" | |
46 | - And I follow "Create a new software" | |
47 | - And fill in "software_info_operating_platform" with "test operating platform" | |
48 | - And fill in "language__version" with "2.0.0" | |
49 | - And fill in "language__operating_system" with "Linux" | |
50 | - And I fill in "database__version" with "3.0" | |
51 | - And I fill in "database__operating_system" with "GNU" | |
52 | - And I press "Create" | |
53 | - Then I should not see "Operating platform can't be blank" | |
54 | - | |
55 | - @selenium | |
56 | - Scenario: Show software_language errors if version is blank | |
57 | - Given I go to admin_user's control panel | |
58 | - And I follow "Manage my groups" | |
59 | - And I follow "Create a new software" | |
60 | - And fill in "community_name" with "test" | |
61 | - And fill in "language__operating_system" with "Linux" | |
62 | - And I fill in "database__version" with "3.0" | |
63 | - And I fill in "database__operating_system" with "GNU" | |
64 | - And I press "Create" | |
65 | - Then I should see "Software languages is invalid" | |
66 | - | |
67 | - Scenario: Show acronym errors if this field is blank | |
68 | - Given I go to admin_user's control panel | |
69 | - And I follow "Manage my groups" | |
70 | - And I follow "Create a new software" | |
71 | - And fill in "community_name" with "test" | |
72 | - And fill in "language__version" with "2.0.0" | |
73 | - And fill in "language__operating_system" with "Linux" | |
74 | - And I fill in "database__version" with "3.0" | |
75 | - And I fill in "database__operating_system" with "GNU" | |
76 | - And I press "Create" | |
77 | - Then I should see "Acronym can't be blank" | |
78 | - | |
79 | - @selenium | |
80 | - Scenario: Show database_fields errors version is blank | |
81 | - Given I go to admin_user's control panel | |
82 | - And I follow "Manage my groups" | |
83 | - And I follow "Create a new software" | |
84 | - And fill in "community_name" with "test" | |
85 | - And fill in "language__version" with "2.0.0" | |
86 | - And fill in "language__operating_system" with "Linux" | |
87 | - And I fill in "database__operating_system" with "GNU" | |
88 | - And I press "Create" | |
89 | - Then I should see "Software databases is invalid" | |
90 | - | |
91 | - Scenario: Show acronym errors if this field has more than 8 characters | |
92 | - Given I go to admin_user's control panel | |
93 | - And I follow "Manage my groups" | |
94 | - And I follow "Create a new software" | |
95 | - And fill in "community_name" with "test" | |
96 | - And fill in "language__version" with "2.0.0" | |
97 | - And fill in "language__operating_system" with "Linux" | |
98 | - And I fill in "database__operating_system" with "GNU" | |
99 | - And I fill in "database__version" with "3.0" | |
100 | - And I press "Create" | |
101 | - And fill in "software_info_acronym" with "123456789" | |
102 | - And I press "Create" | |
103 | - Then I should see "Acronym can't have more than 8 characteres" | |
104 | - | |
105 | - Scenario: Show operating system errors if this field is not filled | |
106 | - Given I go to admin_user's control panel | |
107 | - And I follow "Manage my groups" | |
108 | - And I follow "Create a new software" | |
109 | - And I press "Create" | |
110 | - Then I should see "Operating system : at least one must be filled" | |
111 | - | |
112 | - @selenium | |
113 | - Scenario: Show operating system errors if this field is not filled | |
114 | - Given I go to admin_user's control panel | |
115 | - And I follow "Manage my groups" | |
116 | - And I follow "Create a new software" | |
117 | - And I fill in "operating_system__version" with "3.0" | |
118 | - And I press "Create" | |
119 | - Then I should not see "Operating system : at least one must be filled" | |
120 | - | |
121 | 14 | Scenario: Show library fields when click in New Library |
122 | 15 | Given I go to admin_user's control panel |
123 | 16 | And I follow "Manage my groups" |
... | ... | @@ -133,7 +26,9 @@ Feature: software registration |
133 | 26 | And I follow "Manage my groups" |
134 | 27 | And I follow "Create a new software" |
135 | 28 | And I follow "New language" |
136 | - Then I should see "3" of this selector ".software-language-table" | |
29 | + And I should see "3" of this selector ".software-language-table" | |
30 | + And I follow "Delete" | |
31 | + Then I should see "2" of this selector ".software-language-table" | |
137 | 32 | #3 because one is always hidden |
138 | 33 | |
139 | 34 | @selenium |
... | ... | @@ -142,295 +37,18 @@ Feature: software registration |
142 | 37 | And I follow "Manage my groups" |
143 | 38 | And I follow "Create a new software" |
144 | 39 | And I follow "New Database" |
145 | - Then I should see "3" of this selector ".database-table" | |
40 | + And I should see "3" of this selector ".database-table" | |
41 | + And I follow "Delete" | |
42 | + Then I should see "2" of this selector ".database-table" | |
146 | 43 | #3 because one is always hidden |
147 | 44 | |
148 | 45 | @selenium |
149 | - Scenario: Create software with libraries | |
150 | - Given I go to admin_user's control panel | |
151 | - And I follow "Manage my groups" | |
152 | - And I follow "Create a new software" | |
153 | - And I follow "New Library" | |
154 | - And I fill in "community_name" with "test123" | |
155 | - And fill in "software_info_acronym" with "SFTW" | |
156 | - And I fill in "software_info_operating_platform" with "test platform" | |
157 | - And I fill in "library__name" with "test library name" | |
158 | - And I fill in "library__version" with "test library version" | |
159 | - And I fill in "library__license" with "test library license" | |
160 | - And fill in "language__version" with "2.0.0" | |
161 | - And fill in "language__operating_system" with "Linux" | |
162 | - And I fill in "database__version" with "3.0" | |
163 | - And I fill in "database__operating_system" with "GNU" | |
164 | - And I fill in "operating_system__version" with "3.0" | |
165 | - And I press "Create" | |
166 | - And I go to /myprofile/test123/profile_editor/edit | |
167 | - And I should see "Libraries" | |
168 | - And selector ".library-table" should have any "test library name" | |
169 | - And selector ".library-table" should have any "test library version" | |
170 | - Then selector ".library-table" should have any "test library license" | |
171 | - | |
172 | - @selenium | |
173 | 46 | Scenario: Delete software libraries |
174 | 47 | Given I go to admin_user's control panel |
175 | 48 | And I follow "Manage my groups" |
176 | 49 | And I follow "Create a new software" |
177 | 50 | And I follow "New Library" |
178 | - And I fill in "community_name" with "test123" | |
179 | - And fill in "software_info_acronym" with "SFTW" | |
180 | - And I fill in "software_info_operating_platform" with "test platform" | |
181 | - And I fill in "library__name" with "test name" | |
182 | - And I fill in "library__version" with "test version" | |
183 | - And I fill in "library__license" with "test license" | |
184 | - And fill in "language__version" with "2.0.0" | |
185 | - And fill in "language__operating_system" with "Linux" | |
186 | - And I fill in "database__version" with "3.0" | |
187 | - And I fill in "database__operating_system" with "GNU" | |
188 | - And I fill in "operating_system__version" with "3.0" | |
189 | - And I press "Create" | |
190 | - And I go to /myprofile/test123/profile_editor/edit | |
191 | - And I should see "Libraries" | |
192 | - And selector ".library-table" should have any "test name" | |
193 | - And selector ".library-table" should have any "test version" | |
194 | - And selector ".library-table" should have any "test license" | |
51 | + And I should see "2" of this selector ".library-table" | |
195 | 52 | And I follow "Delete" |
196 | - And I press "Save" | |
197 | - And I go to /myprofile/test123/profile_editor/edit | |
198 | - And I should not see "test name" within "#library__name" | |
199 | - And I should not see "test version" within "#library__version" | |
200 | - Then I should not see "test license" within "#library__license" | |
53 | + Then I should see "1" of this selector ".library-table" | |
201 | 54 | |
202 | - @selenium | |
203 | - Scenario: Crete software libraries on software edit | |
204 | - Given I go to admin_user's control panel | |
205 | - And I follow "Manage my groups" | |
206 | - And I follow "Create a new software" | |
207 | - And I fill in "community_name" with "test123" | |
208 | - And fill in "software_info_acronym" with "SFTW" | |
209 | - And I fill in "software_info_operating_platform" with "test platform" | |
210 | - And fill in "language__version" with "2.0.0" | |
211 | - And fill in "language__operating_system" with "Linux" | |
212 | - And I fill in "database__version" with "3.0" | |
213 | - And I fill in "database__operating_system" with "GNU" | |
214 | - And I fill in "operating_system__version" with "3.0" | |
215 | - And I press "Create" | |
216 | - And I go to /myprofile/test123/profile_editor/edit | |
217 | - And I follow "New Library" | |
218 | - And I fill in "library__name" with "test name" | |
219 | - And I fill in "library__version" with "test version" | |
220 | - And I fill in "library__license" with "test license" | |
221 | - And I press "Save" | |
222 | - And I go to /myprofile/test123/profile_editor/edit | |
223 | - And I should see "Libraries" | |
224 | - And selector ".library-table" should have any "test name" | |
225 | - And selector ".library-table" should have any "test version" | |
226 | - Then selector ".library-table" should have any "test license" | |
227 | - | |
228 | - @selenium | |
229 | - Scenario: Edit software libraries on software edit | |
230 | - Given I go to admin_user's control panel | |
231 | - And I follow "Manage my groups" | |
232 | - And I follow "Create a new software" | |
233 | - And I follow "New Library" | |
234 | - And I fill in "community_name" with "test123" | |
235 | - And fill in "software_info_acronym" with "SFTW" | |
236 | - And I fill in "software_info_operating_platform" with "test platform" | |
237 | - And I fill in "library__name" with "test name" | |
238 | - And I fill in "library__version" with "test version" | |
239 | - And I fill in "library__license" with "test license" | |
240 | - And fill in "language__version" with "2.0.0" | |
241 | - And fill in "language__operating_system" with "Linux" | |
242 | - And I fill in "database__version" with "3.0" | |
243 | - And I fill in "database__operating_system" with "GNU" | |
244 | - And I fill in "operating_system__version" with "3.0" | |
245 | - And I press "Create" | |
246 | - And I go to /myprofile/test123/profile_editor/edit | |
247 | - And I should see "Libraries" | |
248 | - And selector ".library-table" should have any "test name" | |
249 | - And selector ".library-table" should have any "test version" | |
250 | - And selector ".library-table" should have any "test license" | |
251 | - And I follow "New Library" | |
252 | - And I fill in "library__name" with "new name" | |
253 | - And I fill in "library__version" with "new version" | |
254 | - And I fill in "library__license" with "new license" | |
255 | - And I press "Save" | |
256 | - And I go to /myprofile/test123/profile_editor/edit | |
257 | - And selector ".library-table" should have any "new name" | |
258 | - And selector ".library-table" should have any "new version" | |
259 | - Then selector ".library-table" should have any "new license" | |
260 | - | |
261 | - @selenium | |
262 | - Scenario: change license field | |
263 | - Given I go to admin_user's control panel | |
264 | - And I follow "Manage my groups" | |
265 | - And I follow "Create a new software" | |
266 | - And I fill in "community_name" with "test123" | |
267 | - And fill in "software_info_acronym" with "SFTW" | |
268 | - And I fill in "software_info_operating_platform" with "test platform" | |
269 | - And I select "GPL-2" from "license_info_version" | |
270 | - And fill in "language__version" with "2.0.0" | |
271 | - And fill in "language__operating_system" with "Linux" | |
272 | - And I fill in "database__version" with "3.0" | |
273 | - And I fill in "database__operating_system" with "GNU" | |
274 | - And I fill in "operating_system__version" with "3.0" | |
275 | - And I press "Create" | |
276 | - And I go to /myprofile/test123/profile_editor/edit | |
277 | - And I select "GPL-3" from "version" | |
278 | - And I press "Save" | |
279 | - And I go to /myprofile/test123/profile_editor/edit | |
280 | - Then I should see "GPL-3" | |
281 | - | |
282 | - @selenium | |
283 | - Scenario: license link appears on the create software page | |
284 | - Given I go to admin_user's control panel | |
285 | - And I follow "Manage my groups" | |
286 | - And I follow "Create a new software" | |
287 | - And I fill in "community_name" with "test123" | |
288 | - And I fill in "software_info_operating_platform" with "test platform" | |
289 | - And I select "GPL-2" from "license_info_version" | |
290 | - Then I should see "www.gpl2.com" within "#version_link" | |
291 | - | |
292 | - @selenium | |
293 | - Scenario: license link changes if the user choose a different license | |
294 | - Given I go to admin_user's control panel | |
295 | - And I follow "Manage my groups" | |
296 | - And I follow "Create a new software" | |
297 | - And I fill in "community_name" with "test123" | |
298 | - And I fill in "software_info_operating_platform" with "test platform" | |
299 | - And I select "GPL-2" from "license_info_version" | |
300 | - And I should see "www.gpl2.com" within "#version_link" | |
301 | - And I select "GPL-3" from "license_info_version" | |
302 | - Then I should see "www.gpl3.com" within "#version_link" | |
303 | - | |
304 | - @selenium | |
305 | - Scenario: Crete software with Language | |
306 | - Given I go to admin_user's control panel | |
307 | - And I follow "Manage my groups" | |
308 | - And I follow "Create a new software" | |
309 | - And I fill in "community_name" with "test123" | |
310 | - And fill in "software_info_acronym" with "SFTW" | |
311 | - And I fill in "software_info_operating_platform" with "test platform" | |
312 | - And fill in "language__version" with "2.0.0" | |
313 | - And fill in "language__operating_system" with "Linux" | |
314 | - And I fill in "database__version" with "3.0" | |
315 | - And I fill in "database__operating_system" with "GNU" | |
316 | - And I fill in "operating_system__version" with "3.0" | |
317 | - And I press "Create" | |
318 | - And I go to /myprofile/test123/profile_editor/edit | |
319 | - And I should see "Programming Languages" | |
320 | - And selector ".software-language-table" should have any "2.0.0" | |
321 | - Then selector ".software-language-table" should have any "Linux" | |
322 | - | |
323 | - @selenium | |
324 | - Scenario: Edit softwareLanguage on profile editor | |
325 | - Given I go to admin_user's control panel | |
326 | - And I follow "Manage my groups" | |
327 | - And I follow "Create a new software" | |
328 | - And I fill in "community_name" with "test123" | |
329 | - And fill in "software_info_acronym" with "SFTW" | |
330 | - And I fill in "software_info_operating_platform" with "test platform" | |
331 | - And fill in "language__version" with "2.0.0" | |
332 | - And fill in "language__operating_system" with "Linux" | |
333 | - And I fill in "database__version" with "3.0" | |
334 | - And I fill in "database__operating_system" with "GNU" | |
335 | - And I fill in "operating_system__version" with "3.0" | |
336 | - And I press "Create" | |
337 | - And I go to /myprofile/test123/profile_editor/edit | |
338 | - And I should see "Programming Languages" | |
339 | - And selector ".software-language-table" should have any "2.0.0" | |
340 | - And selector ".software-language-table" should have any "Linux" | |
341 | - And I select "Python" from "language__programming_language_id" | |
342 | - And fill in "language__version" with "3.2" | |
343 | - And fill in "language__operating_system" with "GNU" | |
344 | - And I press "Save" | |
345 | - And I go to /myprofile/test123/profile_editor/edit | |
346 | - And selector ".software-language-table" should have any "Python" | |
347 | - And selector ".software-language-table" should have any "3.2" | |
348 | - Then selector ".software-language-table" should have any "GNU" | |
349 | - | |
350 | - @selenium | |
351 | - Scenario: Adding new softwareLanguage on profile editor | |
352 | - Given I go to admin_user's control panel | |
353 | - And I follow "Manage my groups" | |
354 | - And I follow "Create a new software" | |
355 | - And I fill in "community_name" with "test123" | |
356 | - And fill in "software_info_acronym" with "SFTW" | |
357 | - And I fill in "software_info_operating_platform" with "test platform" | |
358 | - And fill in "language__version" with "2.0.0" | |
359 | - And fill in "language__operating_system" with "Linux" | |
360 | - And I fill in "database__version" with "3.0" | |
361 | - And I fill in "database__operating_system" with "GNU" | |
362 | - And I fill in "operating_system__version" with "3.0" | |
363 | - And I press "Create" | |
364 | - And I go to /myprofile/test123/profile_editor/edit | |
365 | - And I should see "Programming Languages" | |
366 | - And selector ".software-language-table" should have any "2.0.0" | |
367 | - And selector ".software-language-table" should have any "Linux" | |
368 | - And I follow "New language" | |
369 | - And I click on the first button with class ".delete-dynamic-table" | |
370 | - And I click on table number "2" selector ".software-language-table" and select the value "Python" | |
371 | - And I fill with "4.3" in field with name "language[][version]" of table number "2" with class ".software-language-table" | |
372 | - And I fill with "Windows" in field with name "language[][operating_system]" of table number "2" with class ".software-language-table" | |
373 | - And I press "Save" | |
374 | - And I go to /myprofile/test123/profile_editor/edit | |
375 | - And selector ".software-language-table" should have any "Python" | |
376 | - And selector ".software-language-table" should have any "4.3" | |
377 | - Then selector ".software-language-table" should have any "Windows" | |
378 | - | |
379 | - @selenium | |
380 | - Scenario: Edit softwareDatabase on profile editor | |
381 | - Given I go to admin_user's control panel | |
382 | - And I follow "Manage my groups" | |
383 | - And I follow "Create a new software" | |
384 | - And I fill in "community_name" with "test123" | |
385 | - And fill in "software_info_acronym" with "SFTW" | |
386 | - And I fill in "software_info_operating_platform" with "test platform" | |
387 | - And fill in "language__version" with "2.0.0" | |
388 | - And fill in "language__operating_system" with "Linux" | |
389 | - And I fill in "database__version" with "3.0" | |
390 | - And I fill in "database__operating_system" with "GNU" | |
391 | - And I fill in "operating_system__version" with "3.0" | |
392 | - And I press "Create" | |
393 | - And I go to /myprofile/test123/profile_editor/edit | |
394 | - And I should see "Databases" | |
395 | - And selector ".database-table" should have any "3.0" | |
396 | - And selector ".database-table" should have any "GNU" | |
397 | - And I select "PostgreSQL" from "database__database_description_id" | |
398 | - And fill in "database__version" with "3.2" | |
399 | - And fill in "database__operating_system" with "Linux" | |
400 | - And I press "Save" | |
401 | - And I go to /myprofile/test123/profile_editor/edit | |
402 | - And selector ".database-table" should have any "PostgreSQL" | |
403 | - And selector ".database-table" should have any "3.2" | |
404 | - Then selector ".database-table" should have any "Linux" | |
405 | - | |
406 | - @selenium | |
407 | - Scenario: Delete softwareDatabase on profile editor | |
408 | - Given I go to admin_user's control panel | |
409 | - And I follow "Manage my groups" | |
410 | - And I follow "Create a new software" | |
411 | - And I fill in "community_name" with "test123" | |
412 | - And fill in "software_info_acronym" with "SFTW" | |
413 | - And I fill in "software_info_operating_platform" with "test platform" | |
414 | - And fill in "language__version" with "2.0.0" | |
415 | - And fill in "language__operating_system" with "Linux" | |
416 | - And I fill in "database__version" with "3.5" | |
417 | - And I fill in "database__operating_system" with "Solaris" | |
418 | - And I fill in "operating_system__version" with "3.0" | |
419 | - And I press "Create" | |
420 | - And I go to /myprofile/test123/profile_editor/edit | |
421 | - And I should see "Databases" | |
422 | - And selector ".database-table" should have any "3.5" | |
423 | - And selector ".database-table" should have any "Solaris" | |
424 | - And I follow "New Database" | |
425 | - And I click on table number "2" selector ".database-table" and select the value "MariaDB" | |
426 | - And I fill with "4.3" in field with name "database[][version]" of table number "2" with class ".database-table" | |
427 | - And I fill with "Windows" in field with name "database[][operating_system]" of table number "2" with class ".database-table" | |
428 | - And I click on the first button with class ".database-table .delete-dynamic-table" | |
429 | - And I press "Save" | |
430 | - And I go to /myprofile/test123/profile_editor/edit | |
431 | - And selector ".database-table" should have any "MariaDB" | |
432 | - And selector ".database-table" should have any "4.3" | |
433 | - And selector ".database-table" should have any "Windows" | |
434 | - And I should not see "4th Dimension" | |
435 | - And I should not see "3.5" | |
436 | - And I should not see "Solaris" | ... | ... |