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

Validate readonly fields #1246

Closed
pedromatos47 opened this issue Feb 1, 2018 · 7 comments · Fixed by #4729 or #4783

Comments

@pedromatos47
Copy link

commented Feb 1, 2018

Since Cypress doesn't support readonly attribute validation as of now, is there any way to work around it?

And would it be to much of a hassle to add this feature?

Cheers

@brian-mann

This comment has been minimized.

Copy link
Member

commented Feb 9, 2018

PR's accepted! This would be rather simple to implement.

@jennifer-shehane

This comment has been minimized.

Copy link
Member

commented Feb 9, 2018

.type() code is here, it should likely throw an err if the input is readonly unless opt force is true: https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/commands/actions/type.coffee#L23

@pedromatos47

This comment has been minimized.

Copy link
Author

commented Feb 9, 2018

@jennifer-shehane @brian-mann Thank you for your feedback! 🙂

@cypress-bot

This comment has been minimized.

Copy link

commented Jul 18, 2019

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

@brian-mann

This comment has been minimized.

Copy link
Member

commented Jul 22, 2019

Reopening per my comments here: #4729 (comment)

@cypress-bot

This comment has been minimized.

Copy link

commented Jul 23, 2019

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

@cypress-bot

This comment has been minimized.

Copy link

commented Jul 29, 2019

Released in 3.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.