Skip to content

Commit 204976a

Browse files
committed
test: address Copilot review — strengthen coverage (PR #52)
1 parent 35f0c45 commit 204976a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/lib/rules/template-no-unsupported-role-attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ const validHbs = [
2424

2525
// <input type="password"> has no implicit role per aria-query (it's intentionally
2626
// not mapped so that screen readers don't announce typed content). No role →
27-
// no aria-supported-props check.
27+
// no aria-supported-props check. Pin this with attributes that would be REJECTED
28+
// on a textbox (aria-checked, aria-selected): if the rule mis-classified password
29+
// as a textbox fallback, these would flag.
2830
'<input type="password" aria-describedby="hint" />',
2931
'<input type="password" aria-required="true" />',
32+
'<input type="password" aria-checked="false" />',
33+
'<input type="password" aria-selected="true" />',
3034

3135
// <input type="text"> without a list attribute is a textbox — aria-required,
3236
// aria-readonly, aria-placeholder are all supported.

0 commit comments

Comments
 (0)