Commit 67c65436b379109bb3102cad0960497c87868df2

Authored by Daniel Cunha
1 parent 0829bd3b

edit_profile.feature

Showing 1 changed file with 22 additions and 22 deletions   Show diff stats
features/edit_profile.feature
@@ -12,8 +12,8 @@ Feature: edit profile @@ -12,8 +12,8 @@ Feature: edit profile
12 | birth_date | 12 | birth_date |
13 When I go to joao's control panel 13 When I go to joao's control panel
14 And I follow "Edit Profile" 14 And I follow "Edit Profile"
15 - And I select "November"  
16 - And I select "15" 15 + And I select "November" from "profile_data_birth_date_2i"
  16 + And I select "15" from "profile_data_birth_date_3i"
17 And I press "Save" 17 And I press "Save"
18 Then I should see "Birth date is invalid" 18 Then I should see "Birth date is invalid"
19 And I should not see "Birth date can't be blank" 19 And I should not see "Birth date can't be blank"
@@ -24,8 +24,8 @@ Feature: edit profile @@ -24,8 +24,8 @@ Feature: edit profile
24 | birth_date | 24 | birth_date |
25 When I go to joao's control panel 25 When I go to joao's control panel
26 And I follow "Edit Profile" 26 And I follow "Edit Profile"
27 - And I select "November"  
28 - And I select "15" 27 + And I select "November" from "profile_data_birth_date_2i"
  28 + And I select "15" from "profile_data_birth_date_3i"
29 And I press "Save" 29 And I press "Save"
30 Then I should see "Birth date is invalid" 30 Then I should see "Birth date is invalid"
31 And I should not see "Birth date can't be blank" 31 And I should not see "Birth date can't be blank"
@@ -36,9 +36,9 @@ Feature: edit profile @@ -36,9 +36,9 @@ Feature: edit profile
36 | birth_date | 36 | birth_date |
37 When I go to joao's control panel 37 When I go to joao's control panel
38 And I follow "Edit Profile" 38 And I follow "Edit Profile"
39 - And I select "November"  
40 - And I select "15"  
41 - And I select "1980" 39 + And I select "November" from "profile_data_birth_date_2i"
  40 + And I select "15" from "profile_data_birth_date_3i"
  41 + And I select "1980" from "profile_data_birth_date_1i"
42 And I press "Save" 42 And I press "Save"
43 Then I should not see "Birth date is invalid" 43 Then I should not see "Birth date is invalid"
44 And I should not see "Birth date is mandatory" 44 And I should not see "Birth date is mandatory"
@@ -49,9 +49,9 @@ Feature: edit profile @@ -49,9 +49,9 @@ Feature: edit profile
49 | birth_date | 49 | birth_date |
50 When I go to joao's control panel 50 When I go to joao's control panel
51 And I follow "Edit Profile" 51 And I follow "Edit Profile"
52 - And I select "November"  
53 - And I select "15"  
54 - And I select "1980" 52 + And I select "November" from "profile_data_birth_date_2i"
  53 + And I select "15" from "profile_data_birth_date_3i"
  54 + And I select "1980" from "profile_data_birth_date_1i"
55 And I press "Save" 55 And I press "Save"
56 Then I should not see "Birth date is invalid" 56 Then I should not see "Birth date is invalid"
57 And I should not see "Birth date is mandatory" 57 And I should not see "Birth date is mandatory"
@@ -62,11 +62,11 @@ Feature: edit profile @@ -62,11 +62,11 @@ Feature: edit profile
62 | identifier | name | owner | 62 | identifier | name | owner |
63 | o-rappa | O Rappa | joao | 63 | o-rappa | O Rappa | joao |
64 And feature "enable_organization_url_change" is enabled on environment 64 And feature "enable_organization_url_change" is enabled on environment
65 - When I go to O Rappa's control panel  
66 - And I follow "Community Info and settings" and wait  
67 - Then the "#identifier-change-confirmation" should not be visible 65 + When I go to o-rappa's control panel
  66 + And I follow "Community Info and settings"
  67 + And I should not see "identifier-change-confirmation"
68 When I fill in "Address" with "banda-o-rappa" 68 When I fill in "Address" with "banda-o-rappa"
69 - Then the "#identifier-change-confirmation" should be visible 69 + And I should see "identifier-change-confirmation"
70 70
71 @selenium 71 @selenium
72 Scenario: Confirm url change 72 Scenario: Confirm url change
@@ -74,12 +74,12 @@ Feature: edit profile @@ -74,12 +74,12 @@ Feature: edit profile
74 | identifier | name | owner | 74 | identifier | name | owner |
75 | o-rappa | O Rappa | joao | 75 | o-rappa | O Rappa | joao |
76 And feature "enable_organization_url_change" is enabled on environment 76 And feature "enable_organization_url_change" is enabled on environment
77 - When I go to O Rappa's control panel  
78 - And I follow "Community Info and settings" and wait 77 + When I go to o-rappa's control panel
  78 + And I follow "Community Info and settings"
79 When I fill in "Address" with "banda-o-rappa" 79 When I fill in "Address" with "banda-o-rappa"
80 - Then the "#identifier-change-confirmation" should be visible 80 + Then I should see "identifier-change-confirmation"
81 When I follow "Yes" 81 When I follow "Yes"
82 - Then the "#identifier-change-confirmation" should not be visible 82 + Then "identifier-change-confirmation" should not be visible within "profile-identifier-formitem"
83 83
84 @selenium 84 @selenium
85 Scenario: Cancel url change 85 Scenario: Cancel url change
@@ -87,9 +87,9 @@ Feature: edit profile @@ -87,9 +87,9 @@ Feature: edit profile
87 | identifier | name | owner | 87 | identifier | name | owner |
88 | o-rappa | O Rappa | joao | 88 | o-rappa | O Rappa | joao |
89 And feature "enable_organization_url_change" is enabled on environment 89 And feature "enable_organization_url_change" is enabled on environment
90 - When I go to O Rappa's control panel  
91 - And I follow "Community Info and settings" and wait 90 + When I go to o-rappa's control panel
  91 + And I follow "Community Info and settings"
92 When I fill in "Address" with "banda-o-rappa" 92 When I fill in "Address" with "banda-o-rappa"
93 - Then the "#identifier-change-confirmation" should be visible 93 + Then I should see "identifier-change-confirmation"
94 When I follow "No" 94 When I follow "No"
95 - Then the "#identifier-change-confirmation" should not be visible 95 + Then "identifier-change-confirmation" should not be visible within "profile-identifier-formitem"