Commit 32355c96d09f157a4e98a64661b299ded5ffd88a
Committed by
Thiago Ribeiro
1 parent
11407756
Exists in
refactor_software_info_to_software
and in
1 other branch
Fixes Software Communities cucumber tests
Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
3 changed files
with
14 additions
and
22 deletions
Show diff stats
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 | 21 | | Software One | true | Health | some finality | |
22 | 22 | | Software Two | true | Health, Education | some finality | |
23 | 23 | | Software Three | false | Education | some finality | |
24 | + And the following blocks | |
25 | + | owner | type | | |
26 | + | software-three | CategoriesAndTagsBlock | | |
24 | 27 | |
25 | 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 | 30 | When I follow "Education" |
33 | 31 | Then I should see "Software Two" |
34 | 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 | 25 | Then the "#software_public_software" button should be disabled |
26 | 26 | |
27 | 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 | 29 | And I follow "Specifications" |
31 | 30 | Then the "#software_public_software" button should be enabled |
32 | 31 | |
33 | 32 | @selenium |
34 | 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 | 35 | And I follow "Specifications" |
38 | 36 | And I uncheck "software[public_software]" |
39 | 37 | And I check "software[public_software]" |
... | ... | @@ -41,8 +39,7 @@ Feature: edit adherent fields |
41 | 39 | |
42 | 40 | @selenium |
43 | 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 | 43 | And I follow "Specifications" |
47 | 44 | And I check "software[public_software]" |
48 | 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 | 15 | | Generic Software | false | some finality | |
16 | 16 | And the following blocks |
17 | 17 | | owner | type | |
18 | - | mpog-admin | SoftwaresBlock | | |
18 | + | environment | SoftwaresBlock | | |
19 | 19 | |
20 | 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 | 23 | When I select "Generic" from "block_software_type" |
26 | 24 | And I press "Save" |
27 | - Then I should see "generic software" | |
25 | + Then I should see "Generic Software" | |
28 | 26 | |
29 | 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 | 30 | When I select "Public" from "block_software_type" |
34 | 31 | And I press "Save" |
35 | - Then I should see "public software" | |
32 | + Then I should see "Public Software" | ... | ... |