Commit a259a8e3f3d66456df9e632e64102bbf5bcfb4ce

Authored by Gabriel Silva
1 parent d62bc305
Exists in spb_to_rails4

Fixes Software Communities cucumber tests

Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
src/noosfero-spb/software_communities/features/categories_and_tags_block.feature
@@ -21,14 +21,12 @@ Feature: go to software search when click on category @@ -21,14 +21,12 @@ Feature: go to software search when click on category
21 | Software One | true | Health | some finality | 21 | Software One | true | Health | some finality |
22 | Software Two | true | Health, Education | some finality | 22 | Software Two | true | Health, Education | some finality |
23 | Software Three | false | Education | some finality | 23 | Software Three | false | Education | some finality |
  24 + And the following blocks
  25 + | owner | type |
  26 + | software-three | CategoriesAndTagsBlock |
24 27
25 Scenario: Search softwares by education category 28 Scenario: Search softwares by education category
26 - Given I go to software-three's control panel  
27 - And I follow "Edit sideboxes"  
28 - And I follow "Add a block"  
29 - And I choose "Categories and Tags"  
30 - And I press "Add"  
31 - And I go to /software-three 29 + Given I go to /software-three
32 When I follow "Education" 30 When I follow "Education"
33 Then I should see "Software Two" 31 Then I should see "Software Two"
34 And I should see "Software Three" 32 And I should see "Software Three"
src/noosfero-spb/software_communities/features/public_software_validation.feature
@@ -25,15 +25,13 @@ Feature: edit adherent fields @@ -25,15 +25,13 @@ Feature: edit adherent fields
25 Then the "#software_public_software" button should be disabled 25 Then the "#software_public_software" button should be disabled
26 26
27 Scenario: Enable public software checkbox to admin users 27 Scenario: Enable public software checkbox to admin users
28 - Given I am logged in as mpog_admin  
29 - And I go to /myprofile/basic-software/plugin/software_communities/edit_software 28 + Given I go to /myprofile/basic-software/plugin/software_communities/edit_software
30 And I follow "Specifications" 29 And I follow "Specifications"
31 Then the "#software_public_software" button should be enabled 30 Then the "#software_public_software" button should be enabled
32 31
33 @selenium 32 @selenium
34 Scenario: Show adherent fields when checkbox are checked 33 Scenario: Show adherent fields when checkbox are checked
35 - Given I am logged in as mpog_admin  
36 - And I go to /myprofile/basic-software/plugin/software_communities/edit_software 34 + Given I go to /myprofile/basic-software/plugin/software_communities/edit_software
37 And I follow "Specifications" 35 And I follow "Specifications"
38 And I uncheck "software[public_software]" 36 And I uncheck "software[public_software]"
39 And I check "software[public_software]" 37 And I check "software[public_software]"
@@ -41,8 +39,7 @@ Feature: edit adherent fields @@ -41,8 +39,7 @@ Feature: edit adherent fields
41 39
42 @selenium 40 @selenium
43 Scenario: Don't show adherent fields when checkbox are not checked 41 Scenario: Don't show adherent fields when checkbox are not checked
44 - Given I am logged in as mpog_admin  
45 - And I go to /myprofile/basic-software/plugin/software_communities/edit_software 42 + Given I go to /myprofile/basic-software/plugin/software_communities/edit_software
46 And I follow "Specifications" 43 And I follow "Specifications"
47 And I check "software[public_software]" 44 And I check "software[public_software]"
48 And I uncheck "software[public_software]" 45 And I uncheck "software[public_software]"
src/noosfero-spb/software_communities/features/software_block.feature
@@ -15,21 +15,18 @@ Feature: edit adherent fields @@ -15,21 +15,18 @@ Feature: edit adherent fields
15 | Generic Software | false | some finality | 15 | Generic Software | false | some finality |
16 And the following blocks 16 And the following blocks
17 | owner | type | 17 | owner | type |
18 - | mpog-admin | SoftwaresBlock | 18 + | environment | SoftwaresBlock |
19 19
20 Scenario: Change software block to generic software block 20 Scenario: Change software block to generic software block
21 - Given I follow "Control panel"  
22 - And I follow "Edit sideboxes"  
23 - And I print the page  
24 - And I follow "Edit" within ".softwares-block" 21 + Given I go to /admin/environment_design
  22 + And I follow "Edit" within ".block.softwares-block"
25 When I select "Generic" from "block_software_type" 23 When I select "Generic" from "block_software_type"
26 And I press "Save" 24 And I press "Save"
27 - Then I should see "generic software" 25 + Then I should see "Generic Software"
28 26
29 Scenario: Change software block to generic software block 27 Scenario: Change software block to generic software block
30 - Given I follow "Control panel"  
31 - And I follow "Edit sideboxes"  
32 - And I follow "Edit" within ".softwares-block" 28 + Given I go to /admin/environment_design
  29 + And I follow "Edit" within ".block.softwares-block"
33 When I select "Public" from "block_software_type" 30 When I select "Public" from "block_software_type"
34 And I press "Save" 31 And I press "Save"
35 - Then I should see "public software" 32 + Then I should see "Public Software"