Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

computeAccessibleName() get null string instead of actual value #908

Open
787681277 opened this issue Feb 14, 2023 · 1 comment
Open

computeAccessibleName() get null string instead of actual value #908

787681277 opened this issue Feb 14, 2023 · 1 comment

Comments

@787681277
Copy link

787681277 commented Feb 14, 2023

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

@eps1lon
Copy link
Owner

eps1lon commented Feb 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants