Commit c3b0fac895a30c88a159c5e6f6d9badc94953f08
Committed by
Luciano Prestes
1 parent
741f0c2a
Exists in
master
and in
5 other branches
Fix finality error on selenium tests
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
5 changed files
with
14 additions
and
15 deletions
Show diff stats
features/public_software_validation.feature
@@ -9,16 +9,14 @@ Feature: edit adherent fields | @@ -9,16 +9,14 @@ Feature: edit adherent fields | ||
9 | | login | name | email | | 9 | | login | name | email | |
10 | | joaosilva | Joao Silva | joaosilva@example.com | | 10 | | joaosilva | Joao Silva | joaosilva@example.com | |
11 | | mariasilva | Maria Silva | mariasilva@example.com | | 11 | | mariasilva | Maria Silva | mariasilva@example.com | |
12 | + And the following softwares | ||
13 | + | name | public_software | finality | | ||
14 | + | basic software | true | basic software finality | | ||
12 | And SoftwareInfo has initial default values on database | 15 | And SoftwareInfo has initial default values on database |
13 | And I am logged in as mpog_admin | 16 | And I am logged in as mpog_admin |
14 | And I go to /admin/plugins | 17 | And I go to /admin/plugins |
15 | And I check "SoftwareCommunitiesPlugin" | 18 | And I check "SoftwareCommunitiesPlugin" |
16 | - And I press "Save changes" | ||
17 | - And I go to /myprofile/mpog-admin | ||
18 | - And I follow "Create a new software" | ||
19 | - And I fill in "community_name_id" with "basic software" | ||
20 | - And I fill in "software_info_finality" with "basic software finality" | ||
21 | - And I press "Create" | 19 | + Then I press "Save changes" |
22 | 20 | ||
23 | Scenario: Disable public software checkbox to non admin users | 21 | Scenario: Disable public software checkbox to non admin users |
24 | Given I am logged in as "joaosilva" | 22 | Given I am logged in as "joaosilva" |
features/software_block.feature
@@ -10,9 +10,9 @@ Feature: edit adherent fields | @@ -10,9 +10,9 @@ Feature: edit adherent fields | ||
10 | And I check "SoftwareCommunitiesPlugin" | 10 | And I check "SoftwareCommunitiesPlugin" |
11 | And I press "Save changes" | 11 | And I press "Save changes" |
12 | And the following softwares | 12 | And the following softwares |
13 | - | name | public_software | | ||
14 | - | Public Software | true | | ||
15 | - | Generic Software | false | | 13 | + | name | public_software | finality | |
14 | + | Public Software | true | some finality | | ||
15 | + | Generic Software | false | some finality | | ||
16 | 16 | ||
17 | Scenario: Add software block | 17 | Scenario: Add software block |
18 | Given I am logged in as mpog_admin | 18 | Given I am logged in as mpog_admin |
features/software_catalog.feature
@@ -17,10 +17,10 @@ Feature: Search software | @@ -17,10 +17,10 @@ Feature: Search software | ||
17 | | Software | Health | true | | 17 | | Software | Health | true | |
18 | | Software | Education | true | | 18 | | Software | Education | true | |
19 | And the following softwares | 19 | And the following softwares |
20 | - | name | public_software | categories | | ||
21 | - | Software One | true | Health | | ||
22 | - | Software Two | true | Health, Education | | ||
23 | - | Software Three | false | Education | | 20 | + | name | public_software | categories | finality | |
21 | + | Software One | true | Health | some finality | | ||
22 | + | Software Two | true | Health, Education | some finality | | ||
23 | + | Software Three | false | Education | some finality | | ||
24 | 24 | ||
25 | 25 | ||
26 | Scenario: Show all "public_software" softwares when open search page | 26 | Scenario: Show all "public_software" softwares when open search page |
features/software_registration.feature
@@ -74,8 +74,8 @@ Feature: edit public software information | @@ -74,8 +74,8 @@ Feature: edit public software information | ||
74 | @selenium | 74 | @selenium |
75 | Scenario: Message second step of creation in edit software community | 75 | Scenario: Message second step of creation in edit software community |
76 | Given the following softwares | 76 | Given the following softwares |
77 | - | name | | ||
78 | - | New Software | | 77 | + | name | finality | |
78 | + | New Software | some finality | | ||
79 | And I go to /myprofile/new-software/profile_editor/edit | 79 | And I go to /myprofile/new-software/profile_editor/edit |
80 | Then I should see "Step 2/2 - Software Community Configuration" | 80 | Then I should see "Step 2/2 - Software Community Configuration" |
81 | And I go to /myprofile/new-software/profile_editor/edit | 81 | And I go to /myprofile/new-software/profile_editor/edit |
features/step_definitions/software_communities_steps.rb
@@ -130,6 +130,7 @@ Given /^the following softwares$/ do |table| | @@ -130,6 +130,7 @@ Given /^the following softwares$/ do |table| | ||
130 | software_info = SoftwareInfo.new | 130 | software_info = SoftwareInfo.new |
131 | software_info.community = Community.create(:name=>item[:name]) | 131 | software_info.community = Community.create(:name=>item[:name]) |
132 | 132 | ||
133 | + software_info.finality = item[:finality] if item[:finality] | ||
133 | software_info.acronym = item[:acronym] if item[:acronym] | 134 | software_info.acronym = item[:acronym] if item[:acronym] |
134 | software_info.finality = item[:finality] if item[:finality] | 135 | software_info.finality = item[:finality] if item[:finality] |
135 | software_info.finality ||= "something" | 136 | software_info.finality ||= "something" |