Commit 67c65436b379109bb3102cad0960497c87868df2
1 parent
0829bd3b
Exists in
master
and in
23 other branches
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 | 12 | | birth_date | |
| 13 | 13 | When I go to joao's control panel |
| 14 | 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 | 17 | And I press "Save" |
| 18 | 18 | Then I should see "Birth date is invalid" |
| 19 | 19 | And I should not see "Birth date can't be blank" |
| ... | ... | @@ -24,8 +24,8 @@ Feature: edit profile |
| 24 | 24 | | birth_date | |
| 25 | 25 | When I go to joao's control panel |
| 26 | 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 | 29 | And I press "Save" |
| 30 | 30 | Then I should see "Birth date is invalid" |
| 31 | 31 | And I should not see "Birth date can't be blank" |
| ... | ... | @@ -36,9 +36,9 @@ Feature: edit profile |
| 36 | 36 | | birth_date | |
| 37 | 37 | When I go to joao's control panel |
| 38 | 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 | 42 | And I press "Save" |
| 43 | 43 | Then I should not see "Birth date is invalid" |
| 44 | 44 | And I should not see "Birth date is mandatory" |
| ... | ... | @@ -49,9 +49,9 @@ Feature: edit profile |
| 49 | 49 | | birth_date | |
| 50 | 50 | When I go to joao's control panel |
| 51 | 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 | 55 | And I press "Save" |
| 56 | 56 | Then I should not see "Birth date is invalid" |
| 57 | 57 | And I should not see "Birth date is mandatory" |
| ... | ... | @@ -62,11 +62,11 @@ Feature: edit profile |
| 62 | 62 | | identifier | name | owner | |
| 63 | 63 | | o-rappa | O Rappa | joao | |
| 64 | 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 | 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 | 71 | @selenium |
| 72 | 72 | Scenario: Confirm url change |
| ... | ... | @@ -74,12 +74,12 @@ Feature: edit profile |
| 74 | 74 | | identifier | name | owner | |
| 75 | 75 | | o-rappa | O Rappa | joao | |
| 76 | 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 | 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 | 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 | 84 | @selenium |
| 85 | 85 | Scenario: Cancel url change |
| ... | ... | @@ -87,9 +87,9 @@ Feature: edit profile |
| 87 | 87 | | identifier | name | owner | |
| 88 | 88 | | o-rappa | O Rappa | joao | |
| 89 | 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 | 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 | 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" | ... | ... |