edit_profile.feature
1.79 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Feature: edit profile
Background:
Given the following users
| login |
| joao |
Given I am logged in as "joao"
Scenario: Warn about invalid birth date 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 "Profile Info and settings"
And I select "November"
And I select "15"
And I press "Save"
Then I should see "Birth date is invalid"
And I should not see "Birth date is mandatory"
Scenario: Warn about invalid birth date 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 "Profile Info and settings"
And I select "November"
And I select "15"
And I press "Save"
Then I should see "Birth date is invalid"
And I should see "Birth date is mandatory"
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 "Profile Info and settings"
And I select "November"
And I select "15"
And I select "1980"
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 "Profile Info and settings"
And I select "November"
And I select "15"
And I select "1980"
And I press "Save"
Then I should not see "Birth date is invalid"
And I should not see "Birth date is mandatory"