fix(AuthForm): use password input id for aria-controls (#5312) · nuxt/ui@55ea9be

Original file line numberDiff line numberDiff line change

@@ -57,15 +57,9 @@ describe('AuthForm', () => {

5757

providers: [{ label: 'Google', icon: 'i-simple-icons-google' }],

5858

separator: 'or',

5959

submit: { label: 'Submit' }

60-
6160

}

6261

})

6362
64-

expect(await axe(wrapper.element, {

65-

rules: {

66-

// The passwordVisibility button has an invalid aria-controls value - it need to point to the id of the password input not its name.

67-

'aria-valid-attr-value': { enabled: false }

68-

}

69-

})).toHaveNoViolations()

63+

expect(await axe(wrapper.element)).toHaveNoViolations()

7064

})

7165

})