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 | 34 | | identifier | name | owner | |
35 | 35 | | o-rappa | O Rappa | joao | |
36 | 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 | 44 | @selenium |
44 | 45 | Scenario: Confirm url change |
... | ... | @@ -46,12 +47,13 @@ Feature: edit profile |
46 | 47 | | identifier | name | owner | |
47 | 48 | | o-rappa | O Rappa | joao | |
48 | 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 | 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 | 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 | 58 | @selenium |
57 | 59 | Scenario: Cancel url change |
... | ... | @@ -59,9 +61,10 @@ Feature: edit profile |
59 | 61 | | identifier | name | owner | |
60 | 62 | | o-rappa | O Rappa | joao | |
61 | 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 | 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 | 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" | ... | ... |