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

Open
pedromatos47 opened this Issue Feb 1, 2018 · 3 comments

Comments

3 participants
@pedromatos47

pedromatos47 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.

Member

brian-mann commented Feb 9, 2018

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

@jennifer-shehane

This comment has been minimized.

Member

jennifer-shehane 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.

pedromatos47 commented Feb 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment