From 2f1dda37008be907571ff7a6fade39c37b94cc6c Mon Sep 17 00:00:00 2001 From: Mark Noonan Date: Wed, 4 Oct 2023 18:27:32 -0400 Subject: [PATCH 1/3] Add clarifying note about disabled elements --- docs/guides/core-concepts/interacting-with-elements.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/guides/core-concepts/interacting-with-elements.mdx b/docs/guides/core-concepts/interacting-with-elements.mdx index 26adf39962..e531be1f73 100644 --- a/docs/guides/core-concepts/interacting-with-elements.mdx +++ b/docs/guides/core-concepts/interacting-with-elements.mdx @@ -100,7 +100,12 @@ will perform the action. ### Disability -Cypress checks whether an element's `disabled` property is `true`. +Cypress checks whether an element's `disabled` property is `true`. Note that +this property only affects +[form controls](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled) +such as `button` or `input`. Setting a `disabled` attribute on other elements will +have no effect on a user's ability to interact with them, +and won't impact Cypress actionability checks. ### Detached From e7c6a5ceff7a7c48f6702a349b4f1b3e29e8d3f9 Mon Sep 17 00:00:00 2001 From: marktnoonan Date: Fri, 20 Oct 2023 10:24:46 -0400 Subject: [PATCH 2/3] lint markdown --- docs/guides/core-concepts/interacting-with-elements.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/core-concepts/interacting-with-elements.mdx b/docs/guides/core-concepts/interacting-with-elements.mdx index e531be1f73..3dffcc8916 100644 --- a/docs/guides/core-concepts/interacting-with-elements.mdx +++ b/docs/guides/core-concepts/interacting-with-elements.mdx @@ -102,10 +102,10 @@ will perform the action. Cypress checks whether an element's `disabled` property is `true`. Note that this property only affects -[form controls](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled) -such as `button` or `input`. Setting a `disabled` attribute on other elements will -have no effect on a user's ability to interact with them, -and won't impact Cypress actionability checks. +[form controls](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled) +such as `button` or `input`. Setting a `disabled` attribute on other elements will +have no effect on a user's ability to interact with them, +and won't impact Cypress actionability checks. ### Detached From a937cbb07433caa4086d918d26d7bf0db7bce30a Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 20 Nov 2023 11:43:46 -0500 Subject: [PATCH 3/3] Update docs/guides/core-concepts/interacting-with-elements.mdx Co-authored-by: Emily Rohrbough --- docs/guides/core-concepts/interacting-with-elements.mdx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/guides/core-concepts/interacting-with-elements.mdx b/docs/guides/core-concepts/interacting-with-elements.mdx index 3dffcc8916..0ebf4948cb 100644 --- a/docs/guides/core-concepts/interacting-with-elements.mdx +++ b/docs/guides/core-concepts/interacting-with-elements.mdx @@ -100,10 +100,8 @@ will perform the action. ### Disability -Cypress checks whether an element's `disabled` property is `true`. Note that -this property only affects -[form controls](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled) -such as `button` or `input`. Setting a `disabled` attribute on other elements will +Cypress checks whether the `disabled` property is `true` on a +[form control](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled) element, such as `button` or `input`. Setting a `disabled` attribute on other elements will have no effect on a user's ability to interact with them, and won't impact Cypress actionability checks.