Changed spec descriptions to be more clear.

This commit is contained in:
Brandon Tripp 2020-11-25 21:18:26 -07:00
parent 8d1931f94c
commit d7641c3a35
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ describe('LoginForm', () => {
})
})
describe('Click on show password input field type change', () => {
describe('Visibility of password', () => {
const wrapper = Wrapper()
it('does not show the password by default', () => {
expect(wrapper.find('input[name ="password"]').attributes('type')).toEqual('password')
@ -85,10 +85,10 @@ describe('LoginForm', () => {
})
})
describe('Focus returns to password input container after show password click', () => {
describe('Focus on password input container after show-password click', () => {
const wrapper = Wrapper()
const componentToGetFocus = wrapper.find('input[name ="password"]')
it('Focus is on the password field container after click', async () => {
it('Focuses on the password field after click', async () => {
wrapper.find('span.click-wrapper').trigger('click', {
relateTarget: componentToGetFocus,
})

View File

@ -139,7 +139,7 @@ export default {
.icon-wrapper {
padding: 8px;
margin: 4px;
padding-left: 16px;
padding-left: 20px;
color: $text-color-disabled;
}
@ -173,7 +173,7 @@ export default {
border-style: none;
appearance: none;
margin-left: 0;
margin-right: -16px;
margin-right: -20px;
width: 100%;
}
}