From d92446c6e608617a4c75173e8b0917c06be14dc6 Mon Sep 17 00:00:00 2001 From: LB Date: Wed, 23 Oct 2024 10:02:05 +1000 Subject: [PATCH] [Tests] Add tests to reinforce required attributes for role="heading" Add unit tests to ensure that there are no warnings when role="heading" is used when aria-level is provided. For example, aria-label is not required. See #1002 --- __tests__/src/rules/role-has-required-aria-props-test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__tests__/src/rules/role-has-required-aria-props-test.js b/__tests__/src/rules/role-has-required-aria-props-test.js index 0ca4e23f..2b74ebad 100644 --- a/__tests__/src/rules/role-has-required-aria-props-test.js +++ b/__tests__/src/rules/role-has-required-aria-props-test.js @@ -66,6 +66,8 @@ ruleTester.run('role-has-required-aria-props', rule, { { code: '' }, { code: '' }, { code: '', settings: componentsSettings }, + { code: '
' }, + { code: '
' }, )).concat(basicValidityTests).map(parserOptionsMapper), invalid: parsers.all([].concat(