Feature: organization custom fields As a noosfero admin I want to choose what fields are active or required for organizations In order to have more consistency in the system Background: Given the following users | login | name | | joaosilva | Joao Silva | And I am logged in as "joaosilva" And feature "enterprise_registration" is enabled on environment And I go to joaosilva's control panel Scenario Outline: organization active fields are not displayed on creation Given the following fields are active fields | display_name | | contact_email | | city | And I follow "Manage my groups" When I follow Then I should not see "Display name" Then I should not see "Contact email" Then I should not see "City" Examples: | organization | creation_button | | community | "Create a new community" | | enterprise | "Register a new enterprise" | Scenario Outline: organization active fields are displayed on edition Given the following fields are active fields | display_name | | contact_email | | city | And the following | name | identifier | | Organization | organization | And "Joao Silva" is admin of "Organization" And I am on organization's control panel And I follow Then I should see "Display name" Then I should see "Contact email" Then I should see "City" Examples: | organization | information | | community | "Community Info and settings" | | enterprise | "Enterprise Info and settings" | Scenario Outline: organization required fields are displayed on creation Given the following fields are required fields | display_name | | contact_email | | city | And I follow "Manage my groups" And I follow When I press Then I should see "Display name can't be blank" Then I should see "Contact email can't be blank" Then I should see "City can't be blank" Examples: | organization | creation_button | confirmation_button | | community | "Create a new community" | "Create" | | enterprise | "Register a new enterprise" | "Next" | Scenario Outline: organization required fields are displayed on edition Given the following fields are required fields | display_name | | contact_email | | city | And the following | name | identifier | display_name | contact_email | city | | Organization | organization | organization | bla@bleee.com | city | And "Joao Silva" is admin of "Organization" And I am on organization's control panel And I follow And I fill in the following: | Display name | | | Contact email | | | City | | When I press "Save" Then I should see "Display name can't be blank" Then I should see "Contact email can't be blank" Then I should see "City can't be blank" Examples: | organization | information | | community | "Community Info and settings" | | enterprise | "Enterprise Info and settings" | Scenario Outline: organization signup fields are displayed on creation Given the following fields are signup fields | display_name | | contact_email | | city | And I follow "Manage my groups" When I follow Then I should see "Display name" Then I should see "Contact email" Then I should see "City" Examples: | organization | creation_button | | community | "Create a new community" | | enterprise | "Register a new enterprise" |