Skip to content

Commit c460a8b

Browse files
committedJan 31, 2022
[Tests] move invalid test case to valid; changed in axe-core v4.4
See dequelabs/axe-core#3188
1 parent fa3c869 commit c460a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎__tests__/src/rules/autocomplete-valid-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ ruleTester.run('autocomplete-valid', rule, {
4646
{ code: '<input type="text" autocomplete={autocompl || "name"} />;' },
4747
{ code: '<input type="text" autocomplete={autocompl || "foo"} />;' },
4848
{ code: '<Foo autocomplete="bar"></Foo>;' },
49+
{ code: '<input type={isEmail ? "email" : "text"} autocomplete="none" />;' },
4950

5051
// PASSED "autocomplete-appropriate"
5152
// see also: https://github.com/dequelabs/axe-core/issues/2912
@@ -61,6 +62,5 @@ ruleTester.run('autocomplete-valid', rule, {
6162
{ code: '<input type="text" autocomplete="invalid name" />;', errors: invalidAutocomplete },
6263
{ code: '<input type="text" autocomplete="home url" />;', errors: invalidAutocomplete },
6364
{ code: '<Bar autocomplete="baz"></Bar>;', errors: invalidAutocomplete, options: [{ inputComponents: ['Bar'] }] },
64-
{ code: '<input type={isEmail ? "email" : "text"} autocomplete="none" />;', errors: invalidAutocomplete },
6565
].map(parserOptionsMapper),
6666
});

0 commit comments

Comments
 (0)
Please sign in to comment.