diff --git a/app/views/jst/registration/studentHigherEdDialog.handlebars b/app/views/jst/registration/studentHigherEdDialog.handlebars
index f86d449e4f9..da52fa92f33 100644
--- a/app/views/jst/registration/studentHigherEdDialog.handlebars
+++ b/app/views/jst/registration/studentHigherEdDialog.handlebars
@@ -15,7 +15,7 @@
diff --git a/public/javascripts/i18nObj.js b/public/javascripts/i18nObj.js
index c4ad521079a..49b9df401c7 100644
--- a/public/javascripts/i18nObj.js
+++ b/public/javascripts/i18nObj.js
@@ -563,6 +563,9 @@ I18n.scope.prototype = {
},
toPercentage: function(number, options) {
return I18n.toPercentage(number, options);
+ },
+ lookup: function(scope, options) {
+ return I18n.lookup(this.resolveScope(scope), options);
}
};
I18n.scope.prototype.t = I18n.scope.prototype.translate;
diff --git a/spec/selenium/users_spec.rb b/spec/selenium/users_spec.rb
index 0cfe7b894c5..df55e53def1 100644
--- a/spec/selenium/users_spec.rb
+++ b/spec/selenium/users_spec.rb
@@ -129,7 +129,9 @@ describe "user selenium tests" do
form = fj('.ui-dialog:visible form')
f('#student_join_code').send_keys(@course.self_enrollment_code)
f('#student_name').send_keys('student!')
- f('#student_birthdate').send_keys('1/1/1980')
+ form.find_element(:css, "select[name='user[birthdate(1)]'] option[value='#{Time.now.year - 20}']").click
+ form.find_element(:css, "select[name='user[birthdate(2)]'] option[value='1']").click
+ form.find_element(:css, "select[name='user[birthdate(3)]'] option[value='1']").click
f('#student_username').send_keys('student')
f('#student_password').send_keys('asdfasdf')
f('#student_password_confirmation').send_keys('asdfasdf')
@@ -147,7 +149,9 @@ describe "user selenium tests" do
form = fj('.ui-dialog:visible form')
f('#student_higher_ed_name').send_keys('student!')
f('#student_higher_ed_email').send_keys('student@example.com')
- f('#student_higher_ed_birthdate').send_keys('1/1/1980')
+ form.find_element(:css, "select[name='user[birthdate(1)]'] option[value='#{Time.now.year - 20}']").click
+ form.find_element(:css, "select[name='user[birthdate(2)]'] option[value='1']").click
+ form.find_element(:css, "select[name='user[birthdate(3)]'] option[value='1']").click
form.find_element(:css, 'input[name="user[terms_of_use]"]').click
expect_new_page_load { form.submit }