Commit 71f3461a68bed79fc8ce7a5a932c22e4ed01b587

Authored by Gabriela Navarro
1 parent 52fb4951
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Fix cucumber step to make a software

Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
features/deactivate_software.feature
... ... @@ -23,8 +23,8 @@ Feature: deactivate software
23 23 | operating_system_name | version |
24 24 | Debian | 1.0 |
25 25 And the following softwares
26   - | name | acronym | operating_platform | software_language | software_database | operating_system|
27   - | teste | ts | I dont know | Python | PostgreSQL | Debian |
  26 + | name | acronym | operating_platform | software_language | software_database | operating_system| objectives | features |
  27 + | teste | ts | I dont know | Python | PostgreSQL | Debian | teste | teste |
28 28 And I go to /plugin/mpog_software/archive_software
29 29 And I should see "teste"
30 30 And I follow "Deactivate software"
... ... @@ -32,7 +32,7 @@ Feature: deactivate software
32 32 And I go to /search/communities
33 33 And I fill in "search-input" with "teste"
34 34 And I press "Search"
35   - Then I should not see "teste" within "search-profile-item"
  35 + Then I should not see "teste" within "#search-results"
36 36  
37 37 @selenium
38 38 Scenario: Activate a deactivated software
... ... @@ -46,8 +46,8 @@ Feature: deactivate software
46 46 | operating_system_name | version |
47 47 | Debian | 1.0 |
48 48 And the following softwares
49   - | name | acronym | operating_platform | software_language | software_database | operating_system|
50   - | teste | ts | I dont know | Python | PostgreSQL | Debian |
  49 + | name | acronym | operating_platform | software_language | software_database | operating_system| objectives | features |
  50 + | teste | ts | I dont know | Python | PostgreSQL | Debian | teste | teste |
51 51 And I go to /plugin/mpog_software/archive_software
52 52 And I should see "teste"
53 53 And I follow "Deactivate software"
... ... @@ -55,7 +55,7 @@ Feature: deactivate software
55 55 And I go to /search/communities
56 56 And I fill in "search-input" with "teste"
57 57 And I press "Search"
58   - And I should not see "Teste" within "search-profile-item"
  58 + And I should not see "Teste" within "#search-results"
59 59 And I go to /plugin/mpog_software/archive_software
60 60 And I should see "teste"
61 61 And I follow "Activate Software"
... ... @@ -63,4 +63,4 @@ Feature: deactivate software
63 63 And I go to /search/communities
64 64 And I fill in "search-input" with "teste"
65 65 And I press "Search"
66   - Then I should see "teste" within "search-profile-item"
  66 + Then I should see "teste" within ".search-profile-item"
... ...
features/step_definitions/mpog_steps.rb
... ... @@ -107,7 +107,7 @@ Given /^the following softwares$/ do |table|
107 107 operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first
108 108 operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first
109 109  
110   - software_info = SoftwareInfo::new(:acronym=>item[:acronym], :operating_platform=>item[:operating_platform])
  110 + software_info = SoftwareInfo::new(:acronym=>item[:acronym], :operating_platform=>item[:operating_platform], :objectives => item[:objectives], :features => item[:features])
111 111 software_info.community = community
112 112 software_info.software_languages << software_language
113 113 software_info.software_databases << software_database
... ...