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 click on 'readonly' inputs / textarea #4874

Closed
jennifer-shehane opened this issue Jul 30, 2019 · 10 comments · Fixed by #4881
Closed

Cannot click on 'readonly' inputs / textarea #4874

jennifer-shehane opened this issue Jul 30, 2019 · 10 comments · Fixed by #4881
Labels
pkg/driver This is due to an issue in the packages/driver directory type: regression A bug that didn't appear until a specific Cy version release

Comments

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Jul 30, 2019

Current behavior:

As noted initially from this comment #4783 (comment), Cypress now errors since 3.4.1 release when attempting to click on a readonly input or textarea.

Desired behavior:

Unlike an input being disabled, having a readonly attribute does not restrict clicking, focusing, selecting, or triggering events on the element. These actions should be allowed and only typing should be restricted.

Steps to reproduce: (app code and test code)

cy.get('input[readonly]`).click()

Versions

Cypress 3.4.1

@jennifer-shehane jennifer-shehane added type: regression A bug that didn't appear until a specific Cy version release and removed stage: work in progress labels Jul 30, 2019
@jennifer-shehane jennifer-shehane added stage: work in progress pkg/driver This is due to an issue in the packages/driver directory labels Jul 30, 2019
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: work in progress labels Jul 30, 2019
@cypress-bot cypress-bot bot added stage: ready for work The issue is reproducible and in scope and removed stage: needs review The PR code is done & tested, needs review labels Jul 31, 2019
@prashantabellad
Copy link

I updated to latest Cypress version and facing this issue of 'readonly' inputs while clicking the Calendar to select a date. When will this be resolved?

@jennifer-shehane
Copy link
Member Author

@prashantabellad We have a working PR in, so just needs review. #4881

@jackwestmoretab
Copy link

Hey, any update on when this change will be merged in? :-)

@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: ready for work The issue is reproducible and in scope labels Aug 30, 2019
@maksnester
Copy link

Still an issue...

@jennifer-shehane
Copy link
Member Author

jennifer-shehane commented Sep 24, 2019

@alendorff You're correct. The issue will be closed and commented on as released when this is fixed.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Sep 24, 2019

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

@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Sep 24, 2019
@hesamossanloo
Copy link

Put the input inside a div and click on the div. It worked for me.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 23, 2019

Released in 3.5.0.

@hajdun
Copy link

hajdun commented Nov 7, 2019

Same happens in 3.5.0 :(
But only in gitlab ci, image: cypress/base:12.13.0, not on local machine :(

@hajdun
Copy link

hajdun commented Nov 11, 2019

Turns out it was covered by another element https://docs.cypress.io/guides/core-concepts/interacting-with-elements.html#Actionability

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Jan 3, 2020
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 type: regression A bug that didn't appear until a specific Cy version release
Projects
None yet
6 participants