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

Cannot type into a, link, or select element #3661

Closed
kuceb opened this issue Mar 6, 2019 · 4 comments · Fixed by #4870
Closed

Cannot type into a, link, or select element #3661

kuceb opened this issue Mar 6, 2019 · 4 comments · Fixed by #4870
Assignees
Labels
pkg/driver This is due to an issue in the packages/driver directory topic: cy.type ⌨️

Comments

@kuceb
Copy link
Contributor

kuceb commented Mar 6, 2019

Cypress should be able to type into any focusable element, in case users want to test event listeners attached to the element

@fr0
Copy link

fr0 commented Mar 15, 2019

You should also be able to type into any element that has a tabindex attribute.

@jennifer-shehane
Copy link
Member

@fr0 This is already currently supported. The current rules are:

Cypress considers the 'body', 'textarea', any 'element' with a 'tabindex' or 'contenteditable' attribute, or any 'input' with a 'type' attribute of 'text', 'password', 'email', 'number', 'date', 'week', 'month', 'time', 'datetime', 'datetime-local', 'search', 'url', or 'tel' to be valid typeable elements.

@cypress-bot cypress-bot bot added the stage: ready for work The issue is reproducible and in scope label Jul 13, 2019
@jennifer-shehane jennifer-shehane added the pkg/driver This is due to an issue in the packages/driver directory label Jul 13, 2019
@kuceb kuceb mentioned this issue Oct 22, 2019
17 tasks
@kuceb kuceb changed the title Cannot type into a, link, or select element Cannot type into a, or link element Oct 22, 2019
@kuceb kuceb changed the title Cannot type into a, or link element Cannot type into a, link, or select element Oct 22, 2019
@cypress-bot cypress-bot bot added stage: work in progress and removed stage: ready for work The issue is reproducible and in scope labels Oct 23, 2019
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 23, 2019

The code for this is done in cypress-io/cypress#4870, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 23, 2019

Released in 3.5.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pkg/driver This is due to an issue in the packages/driver directory topic: cy.type ⌨️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants