Feature: edit profile Background: Given the following users | login | | joao | Given I am logged in as "joao" Scenario: Not warn if birth date is valid when active Given the following person fields are active fields | display_name | | birth_date | When I go to joao's control panel And I follow "Edit Profile" And I fill in "Birth date" with "1980-11-15" And I press "Save" Then I should not see "Birth date is invalid" And I should not see "Birth date is mandatory" Scenario: Not warn if birth date is valid when required Given the following person fields are required fields | display_name | | birth_date | When I go to joao's control panel And I follow "Edit Profile" And I fill in "Birth date" with "1980-11-15" And I press "Save" Then I should not see "Birth date is invalid" And I should not see "Birth date is mandatory" @selenium Scenario: Alert about url change Given the following community | identifier | name | owner | | o-rappa | O Rappa | joao | And feature "enable_organization_url_change" is enabled on environment And I go to o-rappa's control panel When I follow "Community Info and settings" Then I should not see "WARNING" within "#identifier-change-confirmation" And I fill in "Address" with "banda-o-rappa" When I leave the "#profile_data_identifier" field Then I should see "WARNING" within "#identifier-change-confirmation" @selenium Scenario: Confirm url change Given the following community | identifier | name | owner | | o-rappa | O Rappa | joao | And feature "enable_organization_url_change" is enabled on environment And I go to o-rappa's control panel And I follow "Community Info and settings" And I fill in "Address" with "banda-o-rappa" When I leave the "#profile_data_identifier" field Then I should see "WARNING" within "#identifier-change-confirmation" When I follow "Yes" Then I should not see "WARNING" within "#identifier-change-confirmation" @selenium Scenario: Cancel url change Given the following community | identifier | name | owner | | o-rappa | O Rappa | joao | And feature "enable_organization_url_change" is enabled on environment And I go to o-rappa's control panel And I follow "Community Info and settings" And I fill in "Address" with "banda-o-rappa" When I leave the "#profile_data_identifier" field Then I should see "WARNING" within "#identifier-change-confirmation" When I follow "No" Then I should not see "WARNING" within "#identifier-change-confirmation"