ref: master
features/edit_profile.feature
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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" |