Commit 71f3461a68bed79fc8ce7a5a932c22e4ed01b587
1 parent
52fb4951
Exists in
master
and in
5 other branches
Fix cucumber step to make a software
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
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 | ... | ... |