From a259a8e3f3d66456df9e632e64102bbf5bcfb4ce Mon Sep 17 00:00:00 2001 From: Gabriel Silva Date: Mon, 15 Feb 2016 19:40:57 +0000 Subject: [PATCH] Fixes Software Communities cucumber tests --- src/noosfero-spb/software_communities/features/categories_and_tags_block.feature | 10 ++++------ src/noosfero-spb/software_communities/features/public_software_validation.feature | 9 +++------ src/noosfero-spb/software_communities/features/software_block.feature | 17 +++++++---------- 3 files changed, 14 insertions(+), 22 deletions(-) diff --git a/src/noosfero-spb/software_communities/features/categories_and_tags_block.feature b/src/noosfero-spb/software_communities/features/categories_and_tags_block.feature index b791809..14a69ae 100644 --- a/src/noosfero-spb/software_communities/features/categories_and_tags_block.feature +++ b/src/noosfero-spb/software_communities/features/categories_and_tags_block.feature @@ -21,14 +21,12 @@ Feature: go to software search when click on category | Software One | true | Health | some finality | | Software Two | true | Health, Education | some finality | | Software Three | false | Education | some finality | + And the following blocks + | owner | type | + | software-three | CategoriesAndTagsBlock | Scenario: Search softwares by education category - Given I go to software-three's control panel - And I follow "Edit sideboxes" - And I follow "Add a block" - And I choose "Categories and Tags" - And I press "Add" - And I go to /software-three + Given I go to /software-three When I follow "Education" Then I should see "Software Two" And I should see "Software Three" diff --git a/src/noosfero-spb/software_communities/features/public_software_validation.feature b/src/noosfero-spb/software_communities/features/public_software_validation.feature index 4dd6f0b..1a67d14 100644 --- a/src/noosfero-spb/software_communities/features/public_software_validation.feature +++ b/src/noosfero-spb/software_communities/features/public_software_validation.feature @@ -25,15 +25,13 @@ Feature: edit adherent fields Then the "#software_public_software" button should be disabled Scenario: Enable public software checkbox to admin users - Given I am logged in as mpog_admin - And I go to /myprofile/basic-software/plugin/software_communities/edit_software + Given I go to /myprofile/basic-software/plugin/software_communities/edit_software And I follow "Specifications" Then the "#software_public_software" button should be enabled @selenium Scenario: Show adherent fields when checkbox are checked - Given I am logged in as mpog_admin - And I go to /myprofile/basic-software/plugin/software_communities/edit_software + Given I go to /myprofile/basic-software/plugin/software_communities/edit_software And I follow "Specifications" And I uncheck "software[public_software]" And I check "software[public_software]" @@ -41,8 +39,7 @@ Feature: edit adherent fields @selenium Scenario: Don't show adherent fields when checkbox are not checked - Given I am logged in as mpog_admin - And I go to /myprofile/basic-software/plugin/software_communities/edit_software + Given I go to /myprofile/basic-software/plugin/software_communities/edit_software And I follow "Specifications" And I check "software[public_software]" And I uncheck "software[public_software]" diff --git a/src/noosfero-spb/software_communities/features/software_block.feature b/src/noosfero-spb/software_communities/features/software_block.feature index 518d5fe..bf99ef4 100644 --- a/src/noosfero-spb/software_communities/features/software_block.feature +++ b/src/noosfero-spb/software_communities/features/software_block.feature @@ -15,21 +15,18 @@ Feature: edit adherent fields | Generic Software | false | some finality | And the following blocks | owner | type | - | mpog-admin | SoftwaresBlock | + | environment | SoftwaresBlock | Scenario: Change software block to generic software block - Given I follow "Control panel" - And I follow "Edit sideboxes" - And I print the page - And I follow "Edit" within ".softwares-block" + Given I go to /admin/environment_design + And I follow "Edit" within ".block.softwares-block" When I select "Generic" from "block_software_type" And I press "Save" - Then I should see "generic software" + Then I should see "Generic Software" Scenario: Change software block to generic software block - Given I follow "Control panel" - And I follow "Edit sideboxes" - And I follow "Edit" within ".softwares-block" + Given I go to /admin/environment_design + And I follow "Edit" within ".block.softwares-block" When I select "Public" from "block_software_type" And I press "Save" - Then I should see "public software" + Then I should see "Public Software" -- libgit2 0.21.2