Implement .tab() for checking keyboard accessibility
Graham42 opened this issue · 2 comments
- Operating System: Ubuntu 16.04
- Cypress Version: 1.0.3
- Browser Version: Google Chrome 62.0.3202.75
Is this a Feature or Bug?
Feature
Current behavior:
cy.focused().type('{tab}');
fails with error
CypressError: {tab} isn't a supported character sequence. You'll want to use the command cy.tab(), which is not ready yet, but when it is done that's what you'll use.
Desired behavior:
To navigate elements using .tab()
How to reproduce:
Test code:
- Clone https://github.com/Graham42/test-case-cypress-tabbing
- In one terminal run
npm run start
- In a second terminal run
npm run test
to open cypress - Choose the
tabbing_spec.js
suite
Additional Info (images, stack traces, etc)
This feature is important in order to test forms for keyboard accessibility.
Thanks for providing a reproducible example! I am closing this and referencing it as duplicate of #299.
Luckily the issue described in the initial issue should no longer be the case with Chrome, so this is now more possible than before.
There is an open issue in Chromium to add multiplexing support so we've been waiting for that to go live.
ah sorry, did a search and didn't find that one.