Commit 7a9ec6bd by Renzo Lucioni

Merge pull request #6546 from edx/renzo/fix-jasmine-tests

Prevent Jasmine tests from redirecting in dev mode
parents 66e6d1cf 8ef0e77e
......@@ -157,6 +157,9 @@ define([
it('toggles between the login and registration forms', function() {
ajaxSpyAndInitialize(this, 'login');
// Prevent URL from updating
spyOn(history, 'pushState').andCallFake( function() {} );
// Simulate selection of the registration form
selectForm('register');
assertForms('#register-form', '#login-form');
......
......@@ -136,7 +136,6 @@ define([
setFixtures( '<div id="current-step-container"></div>' );
TemplateHelpers.installTemplate( 'templates/verify_student/make_payment_step' );
TemplateHelpers.installTemplate( 'templates/verify_student/requirements' );
});
it( 'allows users to choose a suggested price', function() {
......
......@@ -12,8 +12,6 @@ define(['jquery', 'js/common_helpers/template_helpers', 'js/verify_student/views
'intro_step',
'make_payment_step',
'payment_confirmation_step',
'progress',
'requirements',
'review_photos_step',
'webcam_photo'
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment