Merge pull request #23885 from edx/aakbar/PROD-1478

Unauthenticated Contact Us improvements
This commit is contained in:
Ali Akbar
2020-05-08 19:49:06 +05:00
committed by GitHub
7 changed files with 37 additions and 21 deletions

View File

@@ -179,8 +179,8 @@
// Simulate a click on the reset password link
view.resetPassword();
// Verify that the login-anchor is hidden
expect($('#login-anchor')).toHaveClass('hidden');
// Verify that the login-form is hidden
expect($('#login-form')).toHaveClass('hidden');
// Verify that the password reset form is not hidden
expect($('#password-reset-form')).not.toHaveClass('hidden');

View File

@@ -128,7 +128,12 @@
},
loadForm: function(type) {
var loadFunc = _.bind(this.load[type], this);
var loadFunc;
if (type === 'reset') {
loadFunc = _.bind(this.load.login, this);
loadFunc(this.formDescriptions.login);
}
loadFunc = _.bind(this.load[type], this);
loadFunc(this.formDescriptions[type]);
},
@@ -225,7 +230,7 @@
},
passwordEmailSent: function() {
var $loginAnchorElement = $('#login-anchor');
var $loginAnchorElement = $('#login-form');
this.element.hide($(this.el).find('#password-reset-anchor'));
this.element.show($loginAnchorElement);
this.element.scrollTop($loginAnchorElement);
@@ -236,7 +241,7 @@
category: 'user-engagement'
});
this.element.hide($(this.el).find('#login-anchor'));
this.element.hide($(this.el).find('#login-form'));
this.loadForm('reset');
this.element.scrollTop($('#password-reset-anchor'));
},

View File

@@ -241,7 +241,7 @@
font-weight: $font-regular;
}
.help-button {
.help-button, .btn-secondary {
margin-bottom: $baseline;
height: $baseline * 2;
font-weight: $font-regular;