dom-accessibility-api icon indicating copy to clipboard operation
dom-accessibility-api copied to clipboard

computeAccessibleName() get null string instead of actual value

Open 787681277 opened this issue 2 years ago • 1 comments

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') })

787681277 avatar Feb 14 '23 15:02 787681277

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

eps1lon avatar Feb 14 '23 17:02 eps1lon