Updated tests to weaken "number" input field requirement, which
isn't supported in Firefox.
Refactored into helper method
Merge pull request #622 from edx/will/fix-js-tests-using-number-input

Failing JavaScript tests in Firefox