fix(signin): autofocus on sign in button when password is not required (#5657) r=@vladikoff
Fixes #5636. (Circle CI fail due to old Git SHA)
This commit is contained in:
Родитель
65b4b04523
Коммит
4ccff91a03
|
@ -52,7 +52,7 @@
|
|||
|
||||
{{^chooserAskForPassword}}
|
||||
<div class="button-row">
|
||||
<button type="submit" class="use-logged-in">{{{buttonSignInText}}}</button>
|
||||
<button type="submit" class="use-logged-in" autofocus>{{{buttonSignInText}}}</button>
|
||||
</div>
|
||||
|
||||
<div class="links">
|
||||
|
|
|
@ -614,6 +614,7 @@ define(function (require, exports, module) {
|
|||
assert.ok(view.$('.avatar-view').length, 'should show suggested avatar');
|
||||
assert.notOk(view.$('.password').length, 'should not show password input');
|
||||
assert.isTrue(isEventLogged(metrics, 'signin.ask-password.skipped'));
|
||||
assert.ok(view.$('.use-logged-in').attr('autofocus'), 'should autofocus when password is not required');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче