-
Notifications
You must be signed in to change notification settings - Fork 675
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
pressKey('tab') sometimes works wrong with tabIndex=-1 #4848
Comments
Looks like we have the same issue. After pressing tab key via testcafe, the focus move to document root instead of next element. And it works correctly without testcafe. |
Hello @link89, Thank you for your input. |
Hey! What happened to this? I was trying to test tab navigation inside a modal (http://reactcommunity.org/react-modal/) but did not work, I think it might be related to this because the modal has tabindex="-1" and it just doesn't focus any element inside the modal. Please help! |
Hello, We have no updates regarding this issue. Could you please share a simple reproducible example to illustrate your scenario? |
Related to #5608, we're running into this same issue in a component library we're developing with our Select component (among a handful of others). Testcafe has an issue when trying to open the dropdown and navigate through the items using the arrow keys. When we switch the tabIndex to 0 on our dropdown container, the issue goes away but then it's added to the tab order on the page - which isn't ideal. We created a minimal reproduction of the issue here with just a couple divs and an input: https://github.com/deldreth/testcafe-tabindex-minimal You'll need to run |
What is your Test Scenario?
There is a dialog popup and container with
tabIndex=-1
in it. There are some inputs in the container.What is the Current behavior?
When the Tab key is pressed, a focus goes outside the container.
What is the Expected behavior?
When the Tab key is pressed, a focus should keep inside the container, just like it does without TestCafe.
What is your web application and your TestCafe test code?
https://github.com/alexey-lin/testcafe-studio/commit/7b2cb2e0813506fc109acbda6c66285fee95aabc
Doubling of submit\cancel events in dialogs - Regression - GH-391 test
Your complete test report:
Screenshots:
Steps to Reproduce:
Your Environment details:
The text was updated successfully, but these errors were encountered: