Commit bd283bdfba34d3a7c797c40e5476e699c61dc486
1 parent
aeb0f620
Exists in
master
and in
27 other branches
edit-profile-features: explicitly blur field to display warning box
Showing
1 changed file
with
16 additions
and
13 deletions
Show diff stats
features/edit_profile.feature
@@ -34,11 +34,12 @@ Feature: edit profile | @@ -34,11 +34,12 @@ Feature: edit profile | ||
34 | | identifier | name | owner | | 34 | | identifier | name | owner | |
35 | | o-rappa | O Rappa | joao | | 35 | | o-rappa | O Rappa | joao | |
36 | And feature "enable_organization_url_change" is enabled on environment | 36 | And feature "enable_organization_url_change" is enabled on environment |
37 | - When I go to o-rappa's control panel | ||
38 | - And I follow "Community Info and settings" | ||
39 | - And I should not see "identifier-change-confirmation" | ||
40 | - When I fill in "Address" with "banda-o-rappa" | ||
41 | - And I should see "identifier-change-confirmation" | 37 | + And I go to o-rappa's control panel |
38 | + When I follow "Community Info and settings" | ||
39 | + Then I should not see "WARNING" within "#identifier-change-confirmation" | ||
40 | + And I fill in "Address" with "banda-o-rappa" | ||
41 | + When I leave the "#profile_data_identifier" field | ||
42 | + Then I should see "WARNING" within "#identifier-change-confirmation" | ||
42 | 43 | ||
43 | @selenium | 44 | @selenium |
44 | Scenario: Confirm url change | 45 | Scenario: Confirm url change |
@@ -46,12 +47,13 @@ Feature: edit profile | @@ -46,12 +47,13 @@ Feature: edit profile | ||
46 | | identifier | name | owner | | 47 | | identifier | name | owner | |
47 | | o-rappa | O Rappa | joao | | 48 | | o-rappa | O Rappa | joao | |
48 | And feature "enable_organization_url_change" is enabled on environment | 49 | And feature "enable_organization_url_change" is enabled on environment |
49 | - When I go to o-rappa's control panel | 50 | + And I go to o-rappa's control panel |
50 | And I follow "Community Info and settings" | 51 | And I follow "Community Info and settings" |
51 | - When I fill in "Address" with "banda-o-rappa" | ||
52 | - Then I should see "identifier-change-confirmation" | 52 | + And I fill in "Address" with "banda-o-rappa" |
53 | + When I leave the "#profile_data_identifier" field | ||
54 | + Then I should see "WARNING" within "#identifier-change-confirmation" | ||
53 | When I follow "Yes" | 55 | When I follow "Yes" |
54 | - Then "identifier-change-confirmation" should not be visible within "profile-identifier-formitem" | 56 | + Then I should not see "WARNING" within "#identifier-change-confirmation" |
55 | 57 | ||
56 | @selenium | 58 | @selenium |
57 | Scenario: Cancel url change | 59 | Scenario: Cancel url change |
@@ -59,9 +61,10 @@ Feature: edit profile | @@ -59,9 +61,10 @@ Feature: edit profile | ||
59 | | identifier | name | owner | | 61 | | identifier | name | owner | |
60 | | o-rappa | O Rappa | joao | | 62 | | o-rappa | O Rappa | joao | |
61 | And feature "enable_organization_url_change" is enabled on environment | 63 | And feature "enable_organization_url_change" is enabled on environment |
62 | - When I go to o-rappa's control panel | 64 | + And I go to o-rappa's control panel |
63 | And I follow "Community Info and settings" | 65 | And I follow "Community Info and settings" |
64 | - When I fill in "Address" with "banda-o-rappa" | ||
65 | - Then I should see "identifier-change-confirmation" | 66 | + And I fill in "Address" with "banda-o-rappa" |
67 | + When I leave the "#profile_data_identifier" field | ||
68 | + Then I should see "WARNING" within "#identifier-change-confirmation" | ||
66 | When I follow "No" | 69 | When I follow "No" |
67 | - Then "identifier-change-confirmation" should not be visible within "profile-identifier-formitem" | 70 | + Then I should not see "WARNING" within "#identifier-change-confirmation" |