Commit c52e1229246860d8cb05f06980378528fc3fb9c2
1 parent
5f21a0f0
Exists in
master
and in
5 other branches
Remove role's traces from plugin
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Showing
4 changed files
with
4 additions
and
17 deletions
Show diff stats
features/user_registration.feature
... | ... | @@ -91,7 +91,6 @@ Feature: User Registration |
91 | 91 | | State | Bahia | |
92 | 92 | | City | Salvador | |
93 | 93 | | Secondary e-Mail | josesilva@example.com | |
94 | - | Role | TI analist | | |
95 | 94 | And I select "Brazil" from "profile_data[country]" |
96 | 95 | And I type in "MP" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" |
97 | 96 | And wait for the captcha signup time |
... | ... | @@ -194,7 +193,6 @@ Feature: User Registration |
194 | 193 | And I select "Brazil" from "profile_data[country]" |
195 | 194 | And wait for the captcha signup time |
196 | 195 | When I press "Create my account" |
197 | - Then I should see "Role can't be blank if e-mail has governamental sulfixes." | |
198 | 196 | And I should see "Institution is obligatory if user has a government email." |
199 | 197 | And I should see "State can't be blank" |
200 | 198 | And I should see "City can't be blank" |
... | ... | @@ -226,7 +224,6 @@ Feature: User Registration |
226 | 224 | | State | Bahia | |
227 | 225 | | City | Salvador | |
228 | 226 | | Secondary e-Mail | josesilva@example.com | |
229 | - | Role | TI analist | | |
230 | 227 | And I select "Brazil" from "profile_data[country]" |
231 | 228 | And I fill in "Username" with "josesilva" |
232 | 229 | And wait for the captcha signup time |
... | ... | @@ -249,7 +246,6 @@ Feature: User Registration |
249 | 246 | | State | Bahia | |
250 | 247 | | City | Salvador | |
251 | 248 | | Secondary e-Mail | josesilva@example.com | |
252 | - | Role | TI analist | | |
253 | 249 | And I select "Brazil" from "profile_data[country]" |
254 | 250 | And I fill in "Username" with "josesilva" |
255 | 251 | And wait for the captcha signup time | ... | ... |
public/mpog-user-validations.js
... | ... | @@ -55,9 +55,6 @@ jQuery(document).ready(function(){ |
55 | 55 | jQuery('#secondary_email_field').focus(function() { jQuery('#secondary-email-balloon').fadeIn('slow'); }); |
56 | 56 | jQuery('#secondary_email_field').blur(function() { jQuery('#secondary-email-balloon').fadeOut('slow'); }); |
57 | 57 | |
58 | - jQuery('#role_field').focus(function() { jQuery('#role-balloon').fadeIn('slow'); }); | |
59 | - jQuery('#role_field').blur(function() { jQuery('#role-balloon').fadeOut('slow'); }); | |
60 | - | |
61 | 58 | jQuery('#area_interest_field').focus(function() { jQuery('#area-interest-balloon').fadeIn('slow'); }); |
62 | 59 | jQuery('#area_interest_field').blur(function() { jQuery('#area-interest-balloon').fadeOut('slow'); }); |
63 | 60 | }); | ... | ... |
public/style.css
... | ... | @@ -3,9 +3,7 @@ |
3 | 3 | } |
4 | 4 | |
5 | 5 | #signup-form small#secondary-email-balloon , |
6 | -#signup-form small#role-balloon, | |
7 | -#signup-form small#area-interest-balloon | |
8 | -{ | |
6 | +#signup-form small#area-interest-balloon { | |
9 | 7 | display: none; |
10 | 8 | width: 142px; |
11 | 9 | height: 69px; |
... | ... | @@ -22,16 +20,12 @@ |
22 | 20 | } |
23 | 21 | |
24 | 22 | #signup-form #signup-secondary-email, |
25 | -#signup-form #signup-role, | |
26 | -#signup-form #signup-area-interest | |
27 | -{ | |
23 | +#signup-form #signup-area-interest { | |
28 | 24 | position: relative; |
29 | 25 | } |
30 | 26 | |
31 | 27 | #signup-form small#secondary-email-balloon, |
32 | -#signup-form small#role-balloon, | |
33 | -#signup-form small#area-interest-balloon | |
34 | -{ | |
28 | +#signup-form small#area-interest-balloon { | |
35 | 29 | top: -80px; |
36 | 30 | } |
37 | 31 | ... | ... |
test/unit/mpog_software_plugin_test.rb
... | ... | @@ -22,7 +22,7 @@ class MpogSoftwarePluginTest < ActiveSupport::TestCase |
22 | 22 | @person.name = "Person Name" |
23 | 23 | @person.cell_phone = "76888919" |
24 | 24 | |
25 | - required_list = ["cell_phone","contact_phone","institution","comercial_phone","country","city","state","organization_website","role","area_interest","image"] | |
25 | + required_list = ["cell_phone","contact_phone","institution","comercial_phone","country","city","state","organization_website","area_interest","image"] | |
26 | 26 | |
27 | 27 | empty_fields = required_list.count - 1 |
28 | 28 | test_percentege = (empty_fields * 100) / required_list.count | ... | ... |