diff --git a/features/user_registration.feature b/features/user_registration.feature index 0ddf16c..58ec523 100644 --- a/features/user_registration.feature +++ b/features/user_registration.feature @@ -91,7 +91,6 @@ Feature: User Registration | State | Bahia | | City | Salvador | | Secondary e-Mail | josesilva@example.com | - | Role | TI analist | And I select "Brazil" from "profile_data[country]" And I type in "MP" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" And wait for the captcha signup time @@ -194,7 +193,6 @@ Feature: User Registration And I select "Brazil" from "profile_data[country]" And wait for the captcha signup time When I press "Create my account" - Then I should see "Role can't be blank if e-mail has governamental sulfixes." And I should see "Institution is obligatory if user has a government email." And I should see "State can't be blank" And I should see "City can't be blank" @@ -226,7 +224,6 @@ Feature: User Registration | State | Bahia | | City | Salvador | | Secondary e-Mail | josesilva@example.com | - | Role | TI analist | And I select "Brazil" from "profile_data[country]" And I fill in "Username" with "josesilva" And wait for the captcha signup time @@ -249,7 +246,6 @@ Feature: User Registration | State | Bahia | | City | Salvador | | Secondary e-Mail | josesilva@example.com | - | Role | TI analist | And I select "Brazil" from "profile_data[country]" And I fill in "Username" with "josesilva" And wait for the captcha signup time diff --git a/public/mpog-user-validations.js b/public/mpog-user-validations.js index a023795..33263cb 100644 --- a/public/mpog-user-validations.js +++ b/public/mpog-user-validations.js @@ -55,9 +55,6 @@ jQuery(document).ready(function(){ jQuery('#secondary_email_field').focus(function() { jQuery('#secondary-email-balloon').fadeIn('slow'); }); jQuery('#secondary_email_field').blur(function() { jQuery('#secondary-email-balloon').fadeOut('slow'); }); - jQuery('#role_field').focus(function() { jQuery('#role-balloon').fadeIn('slow'); }); - jQuery('#role_field').blur(function() { jQuery('#role-balloon').fadeOut('slow'); }); - jQuery('#area_interest_field').focus(function() { jQuery('#area-interest-balloon').fadeIn('slow'); }); jQuery('#area_interest_field').blur(function() { jQuery('#area-interest-balloon').fadeOut('slow'); }); }); diff --git a/public/style.css b/public/style.css index 8981bc5..2ba04b8 100644 --- a/public/style.css +++ b/public/style.css @@ -3,9 +3,7 @@ } #signup-form small#secondary-email-balloon , -#signup-form small#role-balloon, -#signup-form small#area-interest-balloon -{ +#signup-form small#area-interest-balloon { display: none; width: 142px; height: 69px; @@ -22,16 +20,12 @@ } #signup-form #signup-secondary-email, -#signup-form #signup-role, -#signup-form #signup-area-interest -{ +#signup-form #signup-area-interest { position: relative; } #signup-form small#secondary-email-balloon, -#signup-form small#role-balloon, -#signup-form small#area-interest-balloon -{ +#signup-form small#area-interest-balloon { top: -80px; } diff --git a/test/unit/mpog_software_plugin_test.rb b/test/unit/mpog_software_plugin_test.rb index 1cf5aaf..73aac42 100644 --- a/test/unit/mpog_software_plugin_test.rb +++ b/test/unit/mpog_software_plugin_test.rb @@ -22,7 +22,7 @@ class MpogSoftwarePluginTest < ActiveSupport::TestCase @person.name = "Person Name" @person.cell_phone = "76888919" - required_list = ["cell_phone","contact_phone","institution","comercial_phone","country","city","state","organization_website","role","area_interest","image"] + required_list = ["cell_phone","contact_phone","institution","comercial_phone","country","city","state","organization_website","area_interest","image"] empty_fields = required_list.count - 1 test_percentege = (empty_fields * 100) / required_list.count -- libgit2 0.21.2