Permalink
Browse files

Focus 'Password' input prompt when a retro requires a password

  • Loading branch information...
butzopower committed Oct 3, 2018
1 parent 1d0a92d commit 6a5a0b718034643d1a8e1d340e80d3580a925ecb
@@ -119,6 +119,7 @@ class LoginToRetroPage extends React.Component {
onChange={this.onInputChange.bind(this)}
onKeyPress={this.onKeyPress.bind(this)}
required={true}
autoFocus={true}
autoComplete={false}/>
<p className="password-terms-text">By logging in, you agree to our <a href={global.Retro.config.terms} target="_blank">Terms of Use</a> and <a href={global.Retro.config.privacy} target="_blank">Privacy Policy</a> and use of cookies.</p>
<div className="error-message">{errors}</div>
@@ -57,6 +57,10 @@ describe('LoginToRetroPage', () => {
expect('label').toContainText('Enter the password to access the retro name.');
});
it('focuses the password input field', () => {
expect('.form-input').toBeFocused();
});
describe('when clicking on the login button', () => {
it('dispatches loginToRetro', () => {

0 comments on commit 6a5a0b7

Please sign in to comment.