dom-accessibility-api
dom-accessibility-api copied to clipboard
computeAccessibleName() get null string instead of actual value
aria-label is existed when check from dev tool, but computeAccessibleName($optionItem[0]) get null string instead of actual value. Which make me confused.
cy.get('div.ap-option-item').should('have.attr', 'aria-label','DropdownItemfortesting'); cy.get('div.ap-option-item').then(($optionItem)=>{ const radioAccessibleName = computeAccessibleName($optionItem[0]) expect(radioAccessibleName).to.equal('DropdownItemfortesting') })
It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://react.new), or a link to a repository on GitHub.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve