Linting for new tests and LoginForm changes.

This commit is contained in:
Brandon Tripp 2020-11-24 15:38:49 -07:00
parent f71fb6b07b
commit 8d1931f94c
2 changed files with 6 additions and 8 deletions

View File

@ -70,7 +70,6 @@ describe('LoginForm', () => {
await Vue.nextTick() await Vue.nextTick()
await expect(wrapper.find('input[name = "password"]').attributes('type')).toEqual('text') await expect(wrapper.find('input[name = "password"]').attributes('type')).toEqual('text')
}) })
}) })
describe('Click on show password icon, icon change', () => { describe('Click on show password icon, icon change', () => {
@ -91,7 +90,7 @@ describe('LoginForm', () => {
const componentToGetFocus = wrapper.find('input[name ="password"]') const componentToGetFocus = wrapper.find('input[name ="password"]')
it('Focus is on the password field container after click', async () => { it('Focus is on the password field container after click', async () => {
wrapper.find('span.click-wrapper').trigger('click', { wrapper.find('span.click-wrapper').trigger('click', {
relateTarget: componentToGetFocus relateTarget: componentToGetFocus,
}) })
await Vue.nextTick() await Vue.nextTick()
await expect(wrapper.emitted('focus')).toBeTruthy() await expect(wrapper.emitted('focus')).toBeTruthy()

View File

@ -79,7 +79,7 @@ export default {
}, },
iconName() { iconName() {
return this.showPassword ? 'eye-slash' : 'eye' return this.showPassword ? 'eye-slash' : 'eye'
} },
}, },
methods: { methods: {
async onSubmit() { async onSubmit() {
@ -146,7 +146,6 @@ export default {
.click-wrapper:hover { .click-wrapper:hover {
cursor: pointer; cursor: pointer;
&:focus-within { &:focus-within {
background-color: $background-color-base; background-color: $background-color-base;
border: $input-border-size solid $border-color-active; border: $input-border-size solid $border-color-active;